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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/ruby-text-flipped-blocks.html

Issue 2150143002: Don't over-flip when mapping visual rects for Ruby text. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rework tests to use Ahem. 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/ruby-text-flipped-blocks.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/ruby-text-flipped-blocks.html b/third_party/WebKit/LayoutTests/paint/invalidation/ruby-text-flipped-blocks.html
new file mode 100644
index 0000000000000000000000000000000000000000..35f5ece99c64d847468eb753b8458c8c6b392f8c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/ruby-text-flipped-blocks.html
@@ -0,0 +1,16 @@
+<!doctype html>
+<script src="../../resources/ahem.js"></script>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<div style="writing-mode: vertical-rl; font-family: Ahem; font-size: 10px;">
+ <ruby id="outside">b<rt id="inside">c</rt></ruby>
+</div>
+<script>
+// Tests that ruby text paint invalidation in flipped-blocks writing mode works
+// correctly. The result should be vertical text as a pink box with a smaller
+// blue box to the right of it.
+onload = runRepaintAndPixelTest;
+function repaintTest() {
+ outside.style.color = "pink";
+ inside.style.color = "blue";
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698