tor-browser

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

eol-spaces-bidi-001.html (1875B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text 3 test: trailing collapsible spaces and bidi</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/#white-space-phase-2">
      6 <link rel="match" href="reference/eol-spaces-bidi-001-ref.html">
      7 <meta name="assert" content="Space before a line break is removed even if reordered to the middle of line by bidi reordering">
      8 
      9 <style>
     10 @font-face {
     11    font-family: "Hasubi Mono";
     12    src: url("/fonts/hasubi-mono/HasubiMono-Regular.woff2");
     13 }
     14 
     15 div {
     16    font-family: "Hasubi Mono", monospace;
     17    border: solid blue;
     18    font-size: 1.5em;
     19 }
     20 .ref {
     21    border-color: orange;
     22    white-space: pre;
     23 }
     24 .w5 { width: 5.01ch; } /* .01 to cover floating point errors */
     25 .w6 { width: 6.01ch; }
     26 .w7 { width: 7.01ch; }
     27 
     28 .blue { background: #aaaaff; }
     29 .red { background: #ffaaaa; }
     30 .green { background: #aaffaa; }
     31 .pink { background: #ffaaff; }
     32 .yellow { background: #ffffaa; }
     33 </style>
     34 
     35 <p>Test passes if each pair of blue / orange boxes are identical (except for the color of their border).
     36 
     37 <div class=w5><span class=pink> </span>A<span class=blue> </span>B<span class=red> </span>ا<span class=green> </span>ب<span class=yellow> </span></div>
     38 
     39 <div class="w5 ref">A<span class=blue> </span>B<span class=red> </span>ا<br>ب</div>
     40 
     41 <hr>
     42 
     43 <div class=w6><span class=pink> </span>A<span class=blue> </span>B<span class=red> </span>ا<span class=green> </span>ب<span class=yellow> </span></div>
     44 
     45 <div class="w6 ref">A<span class=blue> </span>B<span class=red> </span>ا<br>ب</div>
     46 
     47 <hr>
     48 
     49 <div class=w7><span class=pink> </span>A<span class=blue> </span>B<span class=red> </span>ا<span class=green> </span>ب<span class=yellow> </span></div>
     50 
     51 <div class="w7 ref">A<span class=blue> </span>B<span class=red> </span>ا<span class=green> </span>ب</div>