shaping-tatweel-001.html (1476B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text level 3 Test: tatweel and text-shaping</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-001-ref.html"> 9 <meta name="assert" content="Arabic characters next to a U+0640 ARABIC TATWEEL character must take their correct positional form."> 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: 'csstest_noto'; 22 src: url('/fonts/noto/NotoNaskhArabic-regular.woff2') format('woff2'); 23 } 24 table { 25 font-family: 'csstest_noto'; 26 } 27 </style> 28 29 <p>Test passes if both halves of each of the pairs below are identical: 30 31 <table dir=rtl lang=ar> 32 <tr><!-- alef, final form as it doesn't have a medial form --> 33 <td>ـاـ 34 <td>ـﺎـ 35 <tr><!-- alef, final form --> 36 <td>ـا 37 <td>ـﺎ 38 <tr><!-- beh, initial form --> 39 <td>بـ 40 <td>ﺑـ 41 <tr><!-- beh, medial form --> 42 <td>ـبـ 43 <td>ـﺒـ 44 <tr><!-- beh, final form --> 45 <td>ـب 46 <td>ـﺐ 47 </table>