| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <meta charset="utf8"> | 2 <meta charset="utf8"> |
| 3 <style> | 3 <style> |
| 4 .testTextRun { | 4 .testTextRun { |
| 5 font-size: 35px; | 5 font-size: 35px; |
| 6 } | 6 } |
| 7 #highlightContainer rect { | 7 #highlightContainer rect { |
| 8 fill-opacity: 0.3; | 8 fill-opacity: 0.3; |
| 9 } | 9 } |
| 10 </style> | 10 </style> |
| 11 <svg width="600px" height="500px" xmlns="http://www.w3.org/2000/svg"> | 11 <svg width="600px" height="500px" xmlns="http://www.w3.org/2000/svg"> |
| 12 <g id="highlightContainer"/> | 12 <g id="highlightContainer"/> |
| 13 | 13 |
| 14 <!-- multiple combining diacritics in LTR --> | 14 <!-- multiple combining diacritics in LTR --> |
| 15 <text x="50" y="50" class="testTextRun" font-family="cursive">ab̌c&#x
030c;̌</text> | 15 <text x="50" y="50" class="testTextRun" font-family="cursive">ab̌c&#x
030c;̌</text> |
| 16 <text x="200" y="50" class="testTextRun" font-family="serif">ab̌c�
30c;̌</text> | 16 <text x="200" y="50" class="testTextRun" font-family="serif">ab̌c�
30c;̌</text> |
| 17 <text x="350" y="50" class="testTextRun" font-family="sans-serif">ab̌
č̌</text> | 17 <text x="350" y="50" class="testTextRun" font-family="sans-serif">ab̌
č̌</text> |
| 18 | 18 |
| 19 <!-- multiple combining diacritics in RTL --> | 19 <!-- multiple combining diacritics in RTL --> |
| 20 <text x="100" y="125" class="testTextRun" font-family="cursive" direction="r
tl">‏a‏b̌‏č̌</text> | 20 <text x="100" y="125" class="testTextRun" font-family="cursive" direction="r
tl">‏a‏b̌‏č̌</text> |
| 21 <text x="250" y="125" class="testTextRun" font-family="serif" direction="rtl
">‏a‏b̌‏č̌</text> | 21 <text x="250" y="125" class="testTextRun" font-family="serif" direction="rtl
">‏a‏b̌‏č̌</text> |
| 22 <text x="400" y="125" class="testTextRun" font-family="sans-serif" direction
="rtl">‏a‏b̌‏č̌</text> | 22 <text x="400" y="125" class="testTextRun" font-family="sans-serif" direction
="rtl">‏a‏b̌‏č̌</text> |
| 23 | 23 |
| 24 <!-- multiple combining diacritics on ligatures in LTR --> | 24 <!-- multiple combining diacritics on ligatures in LTR --> |
| 25 <!-- MacOS has differences with the "ffi" glyph and diacritics in cursive fo
nt family so the first run uses 'fi' as a workaround. --> | 25 <!-- MacOS has differences with multiple diacritics in cursive font family s
o this is skipped, see: https://crbug.com/669693. --> |
| 26 <text x="50" y="200" class="testTextRun" font-family="cursive">fǐ fi
̌̌</text> | 26 <!-- <text x="50" y="200" class="testTextRun" font-family="cursive">fi0
c; ffǐ̌</text> --> |
| 27 <text x="200" y="200" class="testTextRun" font-family="serif">fǐ ffi
̌̌</text> | 27 <text x="200" y="200" class="testTextRun" font-family="serif">fǐ ffi
̌̌</text> |
| 28 <text x="350" y="200" class="testTextRun" font-family="sans-serif">fǐ
; ffǐ̌</text> | 28 <text x="350" y="200" class="testTextRun" font-family="sans-serif">fǐ
; ffǐ̌</text> |
| 29 | 29 |
| 30 <!-- combining diacritics on ligatures in mixed bidi runs --> | 30 <!-- combining diacritics on ligatures in mixed bidi runs --> |
| 31 <text x="50" y="275" class="testTextRun" font-family="cursive">ff̌
600;ـلاff̌</text> | 31 <text x="50" y="275" class="testTextRun" font-family="cursive">ff̌
600;ـلاff̌</text> |
| 32 <text x="200" y="275" class="testTextRun" font-family="serif">ff̌
00;ـلاff̌</text> | 32 <text x="200" y="275" class="testTextRun" font-family="serif">ff̌
00;ـلاff̌</text> |
| 33 <text x="350" y="275" class="testTextRun" font-family="sans-serif">ff̌
;ــلاff̌</text> | 33 <text x="350" y="275" class="testTextRun" font-family="sans-serif">ff̌
;ــلاff̌</text> |
| 34 | 34 |
| 35 <!-- combining diacritics which are wider than characters in mixed bidi runs
--> | 35 <!-- combining diacritics which are wider than characters in mixed bidi runs
--> |
| 36 <text x="50" y="350" class="testTextRun" font-family="cursive"> ̌@
944;i̳</text> | 36 <text x="50" y="350" class="testTextRun" font-family="cursive"> ̌@
944;i̳</text> |
| 37 <!-- Linux has differences with space width in the following two runs so a p
eriod is used as a workaround. --> | 37 <!-- Linux has differences with space width in the following two runs so a p
eriod is used as a workaround. --> |
| 38 <text x="200" y="350" class="testTextRun" font-family="serif">.̌ʉ
44;i̳</text> | 38 <text x="200" y="350" class="testTextRun" font-family="serif">.̌ʉ
44;i̳</text> |
| 39 <text x="350" y="350" class="testTextRun" font-family="sans-serif">.̌
ﶰi̳</text> | 39 <text x="350" y="350" class="testTextRun" font-family="sans-serif">.̌
ﶰi̳</text> |
| 40 </svg> | 40 </svg> |
| 41 <script src="resources/highlightGlyphs.js"></script> | 41 <script src="resources/highlightGlyphs.js"></script> |
| 42 <script> | 42 <script> |
| 43 highlightGlyphs(document.querySelectorAll('.testTextRun'), highlightContaine
r); | 43 highlightGlyphs(document.querySelectorAll('.testTextRun'), highlightContaine
r); |
| 44 </script> | 44 </script> |
| OLD | NEW |