Bug 1519007 - Avoid using setAsyncScrollOffset() to scroll out of bounds in tests. r=kats

Depends on D24826

Differential Revision: https://phabricator.services.mozilla.com/D25483

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Botond Ballo 2019-04-01 15:39:27 +00:00
Родитель 58c5bb6a5a
Коммит 27b218cb75
6 изменённых файлов: 22 добавлений и 4 удалений

Просмотреть файл

@ -26,6 +26,11 @@
-->
<div style="height: 500px"></div>
<div id="anim"></div>
<!--
Give the page room to scroll, so that the setAsyncScrollOffset() call
doesn't take the scroll position out of bounds
-->
<div style="height: 1000px"></div>
</body>
<script>
"use strict";

Просмотреть файл

@ -26,6 +26,11 @@
-->
<div style="height: 500px"></div>
<div id="anim"></div>
<!--
Give the page room to scroll, so that the setAsyncScrollOffset() call
doesn't take the scroll position out of bounds
-->
<div style="height: 1000px"></div>
</body>
<script>
"use strict";

Просмотреть файл

@ -3,10 +3,12 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=2.0">
<style>
html {
scrollbar-width: none;
}
body {
height: 3000px;
margin: 0;
overflow: hidden;
}
div {
position: absolute;

Просмотреть файл

@ -7,10 +7,12 @@
reftest-async-zoom="2.0">
<head>
<style>
html {
scrollbar-width: none;
}
body {
height: 3000px;
margin: 0;
overflow: hidden;
}
div {
position: fixed;

Просмотреть файл

@ -3,10 +3,12 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=2.0">
<style>
html {
scrollbar-width: none;
}
body {
height: 3000px;
margin: 0;
overflow: hidden;
}
div {
position: absolute;

Просмотреть файл

@ -7,10 +7,12 @@
reftest-async-zoom="2.0">
<head>
<style>
html {
scrollbar-width: none;
}
body {
height: 3000px;
margin: 0;
overflow: hidden;
}
div {
position: sticky;