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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/ruby-text.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.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/ruby-text.html b/third_party/WebKit/LayoutTests/paint/invalidation/ruby-text.html
new file mode 100644
index 0000000000000000000000000000000000000000..7de337908d49ce234883e57b4db1e4f8fd4e5305
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/ruby-text.html
@@ -0,0 +1,14 @@
+<!doctype html>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<div>
+ <ruby id="outside">b<rt id="inside">c</rt></ruby>
+</div>
+<script>
+// Tests that ruby text paint invalidation works correctly. The result should
+// be horizontal text as a pink "b" with a smaller blue "c" above it.
+onload = runRepaintTest;
chrishtr 2016/07/15 01:24:29 runRepaintAndPixelTest is easy, and Xianzhu showed
wkorman 2016/07/15 01:59:23 Done. I mostly felt uneasy about dumping binary im
+function repaintTest() {
+ outside.style.color = "pink";
+ inside.style.color = "blue";
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698