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

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: Add tests. 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..4b2a3d9319af40b0ba23b76ffc7412b2dcb10dcc
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/ruby-text-flipped-blocks.html
@@ -0,0 +1,15 @@
+<!doctype html>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<div style="writing-mode: vertical-rl;">
+ <ruby id="outside">b<rt id="inside">c</rt></ruby>
chrishtr 2016/07/15 01:24:29 Could you quickly summarize the flips that occur h
wkorman 2016/07/15 01:59:23 I think all of the general cases are fine. The pro
+</div>
+<script>
+// Tests that ruby text paint invalidation in flipped-blocks writing mode works
+// correctly. The result should be vertical text as a pink "b" with a smaller
+// blue "c" to the right of it.
+onload = runRepaintTest;
+function repaintTest() {
+ outside.style.color = "pink";
+ inside.style.color = "blue";
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698