OLD | NEW |
1 <style> | 1 <style> |
| 2 .ahem { |
| 3 font:20px/1 Ahem; |
| 4 } |
2 @font-face { | 5 @font-face { |
3 font-family: ivsfont; | 6 font-family: ivsfont; |
4 src: url(resources/AhemIVS.ttf); | 7 src: url(resources/AhemIVS.ttf); |
5 } | 8 } |
6 .ivs { | 9 .ivs { |
7 font-family: ivsfont; | 10 font:20px/1 ivsfont; |
8 } | 11 } |
9 </style> | 12 </style> |
10 <p> | 13 <p> |
11 This page ensures that WebKit can render unicode variation selector correctly.
On platforms which support UVSes, the glyph of U+0061 should be a 0.2em high, 1e
m wide rectangle. On platforms which don't support UVSes, it should be a square.
In addition, any glyphs (including the last resort glyph) should not appear af
ter the glyph on all platforms. | 14 This page ensures that WebKit can render unicode variation selector correctly.
On platforms which support UVSes, the glyph of U+0061 should be a 0.2em high, 1e
m wide rectangle. On platforms which don't support UVSes, it should be a square.
In addition, any glyphs (including the last resort glyph) should not appear af
ter the glyph on all platforms. |
12 </p> | 15 </p> |
13 <div> | 16 <div> |
14 Glyph for code point U+0061 without UVS: | 17 Without UVS: |
15 <span style="font-family: ivsfont;">a</span> | 18 <span class="ivs">a</span> |
| 19 should look like <span class="ahem">X</span> |
16 </div> | 20 </div> |
17 <div> | 21 <div> |
18 Glyph for code point U+0061 with UVS: | 22 With UVS: |
19 <span style="font-family: ivsfont;" id='ivs-holder'>a󠄀</span> | 23 <span class="ivs">a󠄀</span> |
| 24 should look like <span class="ahem">p</span> |
20 </div> | 25 </div> |
| 26 <div> |
| 27 UVS not in the font should fallback to base: |
| 28 <span class="ivs">a󠄁</span> should look like <span class="ahem">X
</span> |
| 29 </div> |
| 30 <script> |
| 31 if (window.testRunner) { |
| 32 testRunner.waitUntilDone(); |
| 33 document.fonts.ready.then(function () { |
| 34 testRunner.notifyDone(); |
| 35 }); |
| 36 } |
| 37 </script> |
OLD | NEW |