tor-browser

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

shaping-001.html (1248B)


      1 <!DOCTYPE html>
      2 <html  lang="en" >
      3 <head>
      4 <meta charset="utf-8">
      5 <title>shaping: colour</title>
      6 <meta name="assert" content="Arabic shaping should not be broken across inline box boundaries for changes to colour.">
      7 <link rel="author" title="Richard Ishida" href="mailto:ishida@w3.org">
      8 <link rel="help" href="https://drafts.csswg.org/css-text/#boundary-shaping">
      9 <link rel="match" href="reference/shaping-001-ref.html">
     10 <meta name="flags" content="should">
     11 <style type="text/css">
     12 @font-face {
     13    font-family: 'csstest_noto';
     14    src: url('/fonts/noto/NotoNaskhArabic-regular.woff2') format('woff2');
     15    }
     16 .test, .ref { border: 1px solid #02D7F6;  margin: 20px;  padding: 10px; width: 3em; font-size: 120px; font-family: "csstest_noto"; }
     17 /* the CSS above is not part of the test */
     18 .color { color:blue; }
     19 </style>
     20 </head>
     21 <body>
     22 <p class="instructions">Test passes if the three Arabic characters in each box join, making the two boxes identical.</p>
     23 
     24 <div class="test" lang="ar" dir="rtl">ع<span class="color">ع</span>ع</div>
     25 <div class="ref" lang="ar" dir="rtl">ع&zwj;<span class="color">&zwj;ع&zwj;</span>&zwj;ع</div>
     26 <!-- Notes:
     27 This test uses the Noto Naskh Arabic font to control variables related to font choice.
     28 -->
     29 </body>
     30 </html>