tcy-white-space-processing-001.html (1165B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Writing Modes Test: white-space:normal space processing in 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-001-ref.html"> 8 <meta name="assert" content="Spaces with white-space:normal in a text-combine horizontal is trimmed at the start and end, and collapsed in the middle."> 9 <style> 10 .v-rl { 11 writing-mode: vertical-rl; 12 width: 200px; 13 } 14 span { 15 -webkit-text-combine: horizontal; /*testing the layout text-combine, not it's support in general*/ 16 text-combine-upright: all; 17 white-space: normal; 18 } 19 #test { color: blue; } 20 #ref { color: orange; } 21 </style> 22 <p>Test passes if the blue and orange lines of text are identical. 23 24 <div class=v-rl> 25 <div id=test>あ<span> 12</span>い<span>34 </span>う<span>5 6</span>えお</div> 26 <div id=ref>あ<span>12</span>い<span>34</span>う<span>5 6</span>えお</div> 27 </div>