зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
58c5bb6a5a
Коммит
27b218cb75
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче