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

Unified Diff: third_party/WebKit/LayoutTests/svg/text/surrogate-pair-queries.html

Issue 1847763002: Only synthesize grapheme widths once for surrogate pair characters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reviewer comments Created 4 years, 9 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/svg/text/surrogate-pair-queries.html
diff --git a/third_party/WebKit/LayoutTests/svg/text/surrogate-pair-queries.html b/third_party/WebKit/LayoutTests/svg/text/surrogate-pair-queries.html
new file mode 100644
index 0000000000000000000000000000000000000000..8b3022eaac8e2add891aeaf1b07ea3757b91db56
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/text/surrogate-pair-queries.html
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML>
+<meta charset="utf8">
+<style>
+ .testTextRun {
+ font-size: 35px;
+ }
+</style>
+<svg width="600px" height="500px" xmlns="http://www.w3.org/2000/svg">
+ <g id="highlightContainer"/>
+
+ <!-- Two surrogate pairs -->
+ <text x="50" y="50" class="testTextRun" font-family="cursive">&#x1f3b6;&#x1f3b6;</text>
+ <text x="200" y="50" class="testTextRun" font-family="serif">&#x1f3b6;&#x1f3b6;</text>
+ <text x="350" y="50" class="testTextRun" font-family="sans-serif">&#x1f3b6;&#x1f3b6;</text>
+
+ <!-- Surrogate pair with a combining diacritic -->
+ <text x="50" y="125" class="testTextRun" font-family="cursive">&#x10437;&#x030c; v&#x030c;</text>
+ <text x="200" y="125" class="testTextRun" font-family="serif">&#x10437;&#x030c; v&#x030c;</text>
+ <text x="350" y="125" class="testTextRun" font-family="sans-serif">&#x10437;&#x030c; v&#x030c;</text>
+
+ <!-- Surrogate pair with a combining diacritic in RTL -->
+ <text x="150" y="250" class="testTextRun" direction="rtl" font-family="cursive">&#x1f3b6;&#x10437;&#x030c;&#x1f3b6;</text>
+ <text x="300" y="250" class="testTextRun" direction="rtl" font-family="serif">&#x1f3b6;&#x10437;&#x030c;&#x1f3b6;</text>
+ <text x="450" y="250" class="testTextRun" direction="rtl" font-family="sans-serif">&#x1f3b6;&#x10437;&#x030c;&#x1f3b6;</text>
+
+ <!-- Surrogate pair with a combining diacritic in RTL with override -->
+ <text x="150" y="350" class="testTextRun" direction="rtl" unicode-bidi="bidi-override" font-family="cursive">&#x1f3b6;&#x10437;&#x030c;&#x1f3b6;</text>
+ <text x="300" y="350" class="testTextRun" direction="rtl" unicode-bidi="bidi-override" font-family="serif">&#x1f3b6;&#x10437;&#x030c;&#x1f3b6;</text>
+ <text x="450" y="350" class="testTextRun" direction="rtl" unicode-bidi="bidi-override" font-family="sans-serif">&#x1f3b6;&#x10437;&#x030c;&#x1f3b6;</text>
+</svg>
+<script src="resources/highlightGlyphs.js"></script>
+<script>
+ highlightGlyphs(document.querySelectorAll('.testTextRun'), highlightContainer);
+</script>

Powered by Google App Engine
This is Rietveld 408576698