Index: third_party/WebKit/LayoutTests/paint/invalidation/flipped-blocks-writing-mode-scroll.html |
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/flipped-blocks-writing-mode-scroll.html b/third_party/WebKit/LayoutTests/paint/invalidation/flipped-blocks-writing-mode-scroll.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3c91534de99a65ebe8662517eddd7c0b4fda8264 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/flipped-blocks-writing-mode-scroll.html |
@@ -0,0 +1,14 @@ |
+<!DOCTYPE html> |
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
+<div id="scroller" style="writing-mode: vertical-rl; width: 400px; height: 400px; overflow-x: auto; will-change: transform"> |
+ <div id="target" style="width: 10000px; height:200px; background: red"></div> |
+</div> |
+<script> |
+// Tests that flipped-blocks writing mode paint invalidation and culling works correctly for a composited scroller. |
+// The result should be a green rectangle across the screen, and a scrollbar moved all the way to the left. |
+onload = runRepaintAndPixelTest; |
+function repaintTest() { |
+ target.style.background = "green"; |
+ scroller.scrollLeft = 0; |
+} |
+</script> |