tor-browser

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

text-transform-fullwidth-009.html (1666B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text level 3 Test: text-transform:fullwidth and trailing spaces, with pre-wrap</title>
      4 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
      5 <link rel="help" href="https://www.w3.org/TR/css-text-3/#text-transform-property">
      6 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
      7 <link rel="match" href="reference/text-transform-fullwidth-009-ref.html">
      8 <meta name="assert" content="full-width does transforms U+0020 spaces to U+3000 after phase 1, but before phase 2, so that end-of-line transformed spaces get the same treatment as natural ones: hang at the end of soft-wrapped lines, and conditionally hang before forced breaks when white-space is pre-wrap.">
      9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     10 <style>
     11 div {
     12  font: 10px/1 Ahem;
     13  margin: 1em 0;
     14 }
     15 .pre {
     16  white-space: pre;
     17 }
     18 #test, #ref,
     19 #test3, #ref3 {
     20  width: 2em;
     21  text-align: right;
     22  white-space: pre-wrap;
     23 }
     24 #test3, #ref3 {
     25  margin-left: 1em;
     26 }
     27 span {
     28  text-transform: full-width;
     29 }
     30 #test2, #ref2,
     31 #test4, #ref4 {
     32  width: min-content;
     33  margin-left: 1em;
     34  white-space: pre-wrap;
     35  background: black;
     36 }
     37 </style>
     38 
     39 <p>Test passes if all black boxes below have the same width and height and are aligned vertically.
     40 <div class=pre> x<br> x</div>
     41 <div id=ref>x&#x3000;x</div>
     42 <div id=test>x<span> </span>x</div>
     43 <div id=ref2>x&#x3000;x</div>
     44 <div id=test2>x<span> </span>x</div>
     45 
     46 <div id=ref3>x&#x3000;<br>x&#x3000;</div>
     47 <div id=test3>x<span> </span><br>x<span> </span></div>
     48 <div id=ref4>x&#x3000;<br>x&#x3000;</div>
     49 <div id=test4>x<span> </span><br>x<span> </span></div>