tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

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>&#x640;</span>&#x0627;<span>&#x640;</span>
     42  <td><span>&#x640;</span>&#xFE8E;<span>&#x640;</span>
     43 <tr><!-- alef, final form -->
     44  <td><span>&#x640;</span>&#x0627;
     45  <td><span>&#x640;</span>&#xFE8E;
     46 <tr><!-- beh, initial form -->
     47  <td>&#x0628;<span>&#x640;</span>
     48  <td>&#xFE91;<span>&#x640;</span>
     49 <tr><!-- beh, medial form -->
     50  <td><span>&#x640;</span>&#x0628;<span>&#x640;</span>
     51  <td><span>&#x640;</span>&#xFE92;<span>&#x640;</span>
     52 <tr><!-- beh, final form -->
     53  <td><span>&#x640;</span>&#x0628;
     54  <td><span>&#x640;</span>&#xFE90;
     55 </table>