Bug 1187804 - Reftests for async scrolling with position:fixed in an iframe. r=kats

--HG--
extra : commitid : 7IsHJNrMn5D
This commit is contained in:
Markus Stange 2015-06-23 23:18:33 -07:00
parent ec7578e60c
commit 14484176b5
5 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,6 @@
<!DOCTYPE HTML>
<html>
<body>
<div style="position:fixed; background:blue; top:0; left:0; width:200px; height:100px"></div>
</body>
</html>

View file

@ -0,0 +1,20 @@
<!DOCTYPE HTML>
<html reftest-async-scroll
reftest-displayport-x="0" reftest-displayport-y="0"
reftest-displayport-w="800" reftest-displayport-h="2000"
reftest-async-scroll-x="0" reftest-async-scroll-y="0">
<body style="overflow:hidden; height:3000px; margin:0;">
<!-- Test that position:fixed content stays fixed when we async-scroll -->
<iframe style="border:0; width:400px; height:400px;" src="data:text/html,
<!DOCTYPE HTML>
<html reftest-displayport-x='0' reftest-displayport-y='0'
reftest-displayport-w='800' reftest-displayport-h='2000'
reftest-async-scroll-x='0' reftest-async-scroll-y='50'>
<body style='overflow:hidden; height:3000px'>
<div style='position:fixed; background:blue; top:0; left:0; width:200px; height:100px'></div>
<div style='background:red; margin-top:100px; width:100px; height:50px'></div>
</body>
</html>
"></iframe>
</body>
</html>

View file

@ -0,0 +1,6 @@
<!DOCTYPE HTML>
<html>
<body>
<div style="position:fixed; background:blue; top:0; left:0; width:200px; height:100px"></div>
</body>
</html>

View file

@ -0,0 +1,20 @@
<!DOCTYPE HTML>
<html reftest-async-scroll
reftest-displayport-x="0" reftest-displayport-y="0"
reftest-displayport-w="800" reftest-displayport-h="2000"
reftest-async-scroll-x="0" reftest-async-scroll-y="80">
<body style="overflow:hidden; height:3000px; margin:0;">
<!-- Test that position:fixed content stays fixed when we async-scroll -->
<iframe style="border:0; width:400px; height:400px; margin-top:80px;" src="data:text/html,
<!DOCTYPE HTML>
<html reftest-displayport-x='0' reftest-displayport-y='0'
reftest-displayport-w='800' reftest-displayport-h='2000'
reftest-async-scroll-x='0' reftest-async-scroll-y='50'>
<body style='overflow:hidden; height:3000px'>
<div style='position:fixed; background:blue; top:0; left:0; width:200px; height:100px'></div>
<div style='background:red; margin-top:100px; width:100px; height:50px'></div>
</body>
</html>
"></iframe>
</body>
</html>

View file

@ -17,6 +17,8 @@ fails skip-if(!asyncPan) == split-opacity-layers-1.html split-opacity-layers-1-r
skip-if(!asyncPan) == sticky-pos-scrollable-1.html sticky-pos-scrollable-1-ref.html
skip-if(!asyncPan) == fixed-pos-scrollable-1.html fixed-pos-scrollable-1-ref.html
skip-if(!asyncPan) == culling-1.html culling-1-ref.html
skip-if(!asyncPan) == position-fixed-iframe-1.html position-fixed-iframe-1-ref.html
skip-if(!asyncPan) == position-fixed-iframe-2.html position-fixed-iframe-2-ref.html
# for the following tests, we want to disable the low-precision buffer
# as it will expand the displayport beyond what the test specifies in