Bug 1496416 - Add a reftest for async-scrolling content with 2D rotation transforms. r=mstange
authorKartikaya Gupta <kgupta@mozilla.com>
Thu, 04 Oct 2018 16:12:16 -0400
changeset 488004 52029571d897b132696818c5edf51ebd7cdcb686
parent 488003 f12b32a5bb3ce3af07b0a43ef6edf2dedee1c3d1
child 488005 c161940934133ef7899b83cf273b17e6ac6ff572
push id246
push userfmarier@mozilla.com
push dateSat, 13 Oct 2018 00:15:40 +0000
reviewersmstange
bugs1496416
milestone64.0a1
Bug 1496416 - Add a reftest for async-scrolling content with 2D rotation transforms. r=mstange
layout/reftests/async-scrolling/reftest.list
layout/reftests/async-scrolling/transformed-1-ref.html
layout/reftests/async-scrolling/transformed-1.html
--- a/layout/reftests/async-scrolling/reftest.list
+++ b/layout/reftests/async-scrolling/reftest.list
@@ -62,16 +62,17 @@ fuzzy-if(Android,0-6,0-4) skip-if(!async
 fuzzy-if(Android,0-6,0-8) skip-if(!asyncPan) == fixed-pos-scrolled-clip-2.html fixed-pos-scrolled-clip-2-ref.html
 fuzzy-if(Android,0-6,0-8) skip-if(!asyncPan) == fixed-pos-scrolled-clip-3.html fixed-pos-scrolled-clip-3-ref.html
 fuzzy-if(Android,0-6,0-8) skip-if(!asyncPan) == fixed-pos-scrolled-clip-4.html fixed-pos-scrolled-clip-4-ref.html
 skip-if(!asyncPan) == fixed-pos-scrolled-clip-5.html fixed-pos-scrolled-clip-5-ref.html
 skip-if(!asyncPan) == position-sticky-bug1434250.html position-sticky-bug1434250-ref.html
 fuzzy-if(Android,0-6,0-4) skip-if(!asyncPan) == position-sticky-scrolled-clip-1.html position-sticky-scrolled-clip-1-ref.html
 fuzzy-if(Android,0-6,0-4) skip == position-sticky-scrolled-clip-2.html position-sticky-scrolled-clip-2-ref.html # bug ?????? - incorrectly applying clip to sticky contents
 fuzzy-if(Android,0-2,0-4) skip-if(!asyncPan) == curtain-effect-1.html curtain-effect-1-ref.html
+fuzzy-if(Android,0-1,0-4) skip-if(!asyncPan) == transformed-1.html transformed-1-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
 # its reftest-displayport attributes, and interfere with where we expect
 # checkerboarding to occur
 default-preferences pref(layers.low-precision-buffer,false)
 skip-if(!asyncPan) == checkerboard-1.html checkerboard-1-ref.html
 skip-if(!asyncPan) == checkerboard-2.html checkerboard-2-ref.html
new file mode 100644
--- /dev/null
+++ b/layout/reftests/async-scrolling/transformed-1-ref.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+    <head><title>Async scrolling with transforms</title></head>
+    <body style="height: 2000px" onload="window.scrollTo(0,20); document.documentElement.classList.remove('reftest-wait')">
+        <div style="transform: rotate(90deg); transform-origin: bottom left">Some vertical text</div>
+    </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/async-scrolling/transformed-1.html
@@ -0,0 +1,10 @@
+<!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="20">
+    <head><title>Async scrolling with transforms</title></head>
+    <body style="height: 2000px">
+        <div style="transform: rotate(90deg); transform-origin: bottom left">Some vertical text</div>
+    </body>
+</html>