tor-browser

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

tcy-white-space-processing-003.html (1522B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Writing Modes Test: white space only text-combine-horizontal</title>
      4 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
      5 <link rel="help" href="https://www.w3.org/TR/css-writing-modes-4/#text-combine-layout">
      6 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-rules">
      7 <link rel="match" href="reference/tcy-white-space-processing-003-ref.html">
      8 <meta name="assert" content="a text-combine-upright with only white-space is preserved as a 1em square, including at the end of the containing line, regardless of the value of the white-space property">
      9 <style>
     10 .v-rl {
     11  writing-mode: vertical-rl;
     12  width: 200px;
     13 }
     14 #test span {
     15  -webkit-text-combine: horizontal; /*testing the layout text-combine, not it's support in general*/
     16  text-combine-upright: all;
     17 }
     18 #test2 span {
     19  -webkit-text-combine: horizontal; /*testing the layout text-combine, not it's support in general*/
     20  text-combine-upright: all;
     21  white-space: pre;
     22 }
     23 #ref span {
     24  display: inline-block;
     25  height: 1em;
     26 }
     27 #test { color: blue; }
     28 #test2 { color: brown; }
     29 #ref { color: orange; }
     30 .v-rl > div {
     31  display: inline-block;
     32  border: solid;
     33  margin: 0 5px;
     34 }
     35 </style>
     36 <p>Test passes if the blue, orange, brown boxes are identical.
     37 
     38 <div class=v-rl>
     39  <div id=test>あいう<span> </span>えお<span> </span></div>
     40  <br>
     41  <div id=test2>あいう<span> </span>えお<span> </span></div>
     42  <br>
     43  <div id=ref>あいう<span></span>えお<span></span></div>
     44 </div>