Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/flipped-blocks-writing-mode-scroll.html

Issue 2144413002: Fix invalidation under scroll, and cull rect testing, of flipped-block writing mode elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: none Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698