shaping-tatweel-003.html (1969B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text level 3 Test: tatweel and text-shaping, cross font, explicit</title> 4 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"> 5 <link rel="help" href="https://drafts.csswg.org/css-text-3/#text-encoding"> 6 <link rel="help" href="https://www.unicode.org/versions/Unicode11.0.0/ch09.pdf"> 7 <link rel="help" href="https://www.w3.org/TR/alreq/#h_joining_enforcement"> 8 <link rel="match" href="reference/shaping-tatweel-002-ref.html"> 9 <meta name="assert" content="Arabic characters next to a U+0640 ARABIC TATWEEL character must take their correct positional form, even if the tatweel comes from a differnt font due to being in a different element with an explicit different font."> 10 <style> 11 table { 12 font-size: 3em; 13 border-spacing: 0 3px; 14 } 15 td { 16 padding: 0 0.5ch; 17 line-height: 1; 18 border: 1px solid; 19 } 20 @font-face { 21 font-family: 'tatweel'; 22 src: url('/fonts/Scheherazade-Regular.woff') format('woff'); 23 } 24 @font-face { 25 font-family: 'csstest_noto'; 26 src: url('/fonts/noto/NotoNaskhArabic-regular.woff2') format('woff2'); 27 } 28 span { 29 font-family: 'tatweel'; 30 line-height: 0; 31 } 32 table { 33 font-family: 'csstest_noto'; 34 } 35 </style> 36 37 <p>Test passes if both halves of each of the pairs below are identical: 38 39 <table dir=rtl lang=ar> 40 <tr><!-- alef, final form as it doesn't have a medial form --> 41 <td><span>ـ</span>ا<span>ـ</span> 42 <td><span>ـ</span>ﺎ<span>ـ</span> 43 <tr><!-- alef, final form --> 44 <td><span>ـ</span>ا 45 <td><span>ـ</span>ﺎ 46 <tr><!-- beh, initial form --> 47 <td>ب<span>ـ</span> 48 <td>ﺑ<span>ـ</span> 49 <tr><!-- beh, medial form --> 50 <td><span>ـ</span>ب<span>ـ</span> 51 <td><span>ـ</span>ﺒ<span>ـ</span> 52 <tr><!-- beh, final form --> 53 <td><span>ـ</span>ب 54 <td><span>ـ</span>ﺐ 55 </table>