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

Side by Side 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, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <meta charset="utf8">
3 <style>
4 .testTextRun {
5 font-size: 35px;
6 }
7 </style>
8 <svg width="600px" height="500px" xmlns="http://www.w3.org/2000/svg">
9 <g id="highlightContainer"/>
10
11 <!-- Two surrogate pairs -->
12 <text x="50" y="50" class="testTextRun" font-family="cursive">&#x1f3b6;&#x1f 3b6;</text>
13 <text x="200" y="50" class="testTextRun" font-family="serif">&#x1f3b6;&#x1f3 b6;</text>
14 <text x="350" y="50" class="testTextRun" font-family="sans-serif">&#x1f3b6;& #x1f3b6;</text>
15
16 <!-- Surrogate pair with a combining diacritic -->
17 <text x="50" y="125" class="testTextRun" font-family="cursive">&#x10437;&#x0 30c; v&#x030c;</text>
18 <text x="200" y="125" class="testTextRun" font-family="serif">&#x10437;&#x03 0c; v&#x030c;</text>
19 <text x="350" y="125" class="testTextRun" font-family="sans-serif">&#x10437; &#x030c; v&#x030c;</text>
20
21 <!-- Surrogate pair with a combining diacritic in RTL -->
22 <text x="150" y="250" class="testTextRun" direction="rtl" font-family="cursi ve">&#x1f3b6;&#x10437;&#x030c;&#x1f3b6;</text>
23 <text x="300" y="250" class="testTextRun" direction="rtl" font-family="serif ">&#x1f3b6;&#x10437;&#x030c;&#x1f3b6;</text>
24 <text x="450" y="250" class="testTextRun" direction="rtl" font-family="sans- serif">&#x1f3b6;&#x10437;&#x030c;&#x1f3b6;</text>
25
26 <!-- Surrogate pair with a combining diacritic in RTL with override -->
27 <text x="150" y="350" class="testTextRun" direction="rtl" unicode-bidi="bidi -override" font-family="cursive">&#x1f3b6;&#x10437;&#x030c;&#x1f3b6;</text>
28 <text x="300" y="350" class="testTextRun" direction="rtl" unicode-bidi="bidi -override" font-family="serif">&#x1f3b6;&#x10437;&#x030c;&#x1f3b6;</text>
29 <text x="450" y="350" class="testTextRun" direction="rtl" unicode-bidi="bidi -override" font-family="sans-serif">&#x1f3b6;&#x10437;&#x030c;&#x1f3b6;</text>
30 </svg>
31 <script src="resources/highlightGlyphs.js"></script>
32 <script>
33 highlightGlyphs(document.querySelectorAll('.testTextRun'), highlightContaine r);
34 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698