OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <script src="../../../resources/testharness.js"></script> |
| 4 <script src="../../../resources/testharnessreport.js"></script> |
| 5 <style> |
| 6 /* Needs font specifications that do not trigger fallback differences |
| 7 between base and synthetic small-caps (i.e. upper cased) versions. */ |
| 8 span { |
| 9 font-family: DejaVu Sans, Arial Unicode MS, Arial; |
| 10 } |
| 11 |
| 12 .caps { font-variant-caps: all-small-caps; font-size: 50px; } |
| 13 |
| 14 .synthetic { |
| 15 font-size: 35px; // 0.7 * caps font size, see SimpleFontData.cpp |
| 16 } |
| 17 </style> |
| 18 |
| 19 <!-- Concatenated list of all non context-sensitive regular-uppercase pairings f
rom ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt --> |
| 20 <span id="allsmallcaps" class="caps">ßİfffifl&#x
FB03;fflſtstևﬓﬔﬕﬖﬗ&#x
0149;ΐΰǰẖẗẘẙẚὐ&#x
1F52;ὔὖᾶῆῒΐῖῗῢ&#x
1FE3;ῤῦῧῶᾀᾁᾂᾃᾄ&#x
1F85;ᾆᾇᾈᾉᾊᾋᾌᾍᾎ&#x
1F8F;ᾐᾑᾒᾓᾔᾕᾖᾗᾘ&#x
1F99;ᾚᾛᾜᾝᾞᾟᾠᾡᾢ&#x
1FA3;ᾤᾥᾦᾧᾨᾩᾪᾫᾬ&#x
1FAD;ᾮᾯᾳᾼῃῌῳῼᾲ&#x
1FB4;ῂῄῲῴᾷῇῷ</span> |
| 21 <span id="uppercase" class="synthetic">SSİFF&
#x0046;IFLFFIFFL&
#x0053;TSTԵՒՄՆՄԵ&
#x0544;ԻՎՆՄԽʼNΪ&
#x0301;Ϋ́J̌H̱T̈&
#x0057;̊Y̊AʾΥ̓Υ̓&
#x0300;Υ̓́Υ̓͂Α͂Η&
#x0342;Ϊ̀Ϊ́Ι͂Ι&
#x0308;͂Ϋ̀Ϋ́Ρ̓&
#x03A5;͂Ϋ͂Ω͂ἈΙἉ&
#x0399;ἊΙἋΙἌΙἍΙἎ&
#x0399;ἏΙἈΙἉΙἊΙἋ&
#x0399;ἌΙἍΙἎΙἏΙἨ&
#x0399;ἩΙἪΙἫΙἬΙἭ&
#x0399;ἮΙἯΙἨΙἩΙἪ&
#x0399;ἫΙἬΙἭΙἮΙἯ&
#x0399;ὨΙὩΙὪΙὫΙὬ&
#x0399;ὭΙὮΙὯΙὨΙὩ&
#x0399;ὪΙὫΙὬΙὭΙὮ&
#x0399;ὯΙΑΙΑΙΗΙΗ&
#x0399;ΩΙΩΙᾺΙΆΙῊ&
#x0399;ΉΙῺΙΏΙΑ͂Ι&
#x0397;͂ΙΩ͂Ι</span> |
| 22 |
| 23 <span id="sharpstruncation" class="caps">ßa</span> |
| 24 <span id="sharpsuppercase" class="synthetic">SSA</span> |
| 25 |
| 26 <script> |
| 27 test(function(){ |
| 28 assert_equals(allsmallcaps.getBoundingClientRect().width, |
| 29 uppercase.getBoundingClientRect().width); |
| 30 }, "Synthetic small caps should produce the same width as manually uppercased, d
ownscaled text."); |
| 31 |
| 32 |
| 33 test(function(){ |
| 34 assert_equals(sharpstruncation.getBoundingClientRect().width, |
| 35 sharpsuppercase.getBoundingClientRect().width); |
| 36 }, "Strings containing uppercased sharp S should not be truncated."); |
| 37 </script> |
OLD | NEW |