tor-browser

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

shaping-join-003.html (1884B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text level 3 Test: zwj 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/ch23.pdf">
      7 <link rel="help" href="https://www.unicode.org/versions/Unicode11.0.0/ch09.pdf">
      8 <link rel="help" href="https://www.w3.org/TR/alreq/#h_joining_enforcement">
      9 <link rel="match" href="reference/shaping-join-001-ref.html">
     10 <meta name="assert" content="Arabic characters next to a ZERO WIDTH JOINER character must take their correct positional form, even if the ZWJ comes from a differnt font due to being in a different element with an explicit different font.">
     11 <style>
     12  table {
     13    font-size: 3em;
     14    border-spacing: 0 3px;
     15  }
     16  td {
     17    padding: 0 0.5ch;
     18    line-height: 1;
     19    border: 1px solid;
     20  }
     21  @font-face {
     22    font-family: 'joiners';
     23    src: url('/fonts/noto/noto-sans-v8-latin-regular.woff') format('woff');
     24  }
     25  @font-face {
     26    font-family: 'csstest_noto';
     27    src: url('/fonts/noto/NotoNaskhArabic-regular.woff2') format('woff2');
     28  }
     29  span {
     30    font-family: 'joiners';
     31    line-height: 0;
     32  }
     33  table {
     34    font-family: 'csstest_noto';
     35  }
     36 </style>
     37 
     38 <p>Test passes if both halves of each of the pairs below are identical:
     39 
     40 <table dir=rtl>
     41 <tr><!-- alef, final form as it doesn't have a medial form -->
     42  <td><span>&zwj;</span>&#x0627;<span>&zwj;</span>
     43  <td>&#xFE8E;
     44 <tr><!-- alef, final form -->
     45  <td><span>&zwj;</span>&#x0627;
     46  <td>&#xFE8E;
     47 <tr><!-- beh, initial form -->
     48  <td>&#x0628;<span>&zwj;</span>
     49  <td>&#xFE91;
     50 <tr><!-- beh, medial form -->
     51  <td><span>&zwj;</span>&#x0628;<span>&zwj;</span>
     52  <td>&#xFE92;
     53 <tr><!-- beh, final form -->
     54  <td><span>&zwj;</span>&#x0628;
     55  <td>&#xFE90;
     56 </table>