line-edge-white-space-collapse-002.html (1388B)
1 <!doctype html> 2 <html> 3 <meta charset=utf-8> 4 <link rel="author" title="Mike Bremford" href="mailto:mike@bfo.com"> 5 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net"> 6 <link rel="help" href="https://www.w3.org/TR/css-text-3/#white-space-phase-2"> 7 <link rel="match" href="reference/line-edge-white-space-collapse-002-ref.html"> 8 <title>White space collapse at start of line collapses through an inline</title> 9 <style> 10 div { font: 30px/30px monospace; } 11 span span { border-left: 30px solid green } 12 aside { 13 font: 30px/30px monospace; 14 width: 30px; 15 background: red; 16 position: absolute; 17 z-index:-1; 18 height: 300px; 19 20 /* to avoid accidental bleeding at the edges by a pixel or a sub pixel*/ 21 box-sizing: border-box; 22 border: solid white 5px; 23 } 24 </style> 25 26 <p>Test passes if there is a single green rectangle, and no red. The letters KLMNOPQRST must be immediately to its right, vertically aligned with each other. 27 28 <aside></aside> 29 <div><span> <span> </span> K</span></div> 30 <div><span> <span> </span> L</span></div> 31 <div><span> <span> </span> M</span></div> 32 <div><span><span> </span> N</span></div> 33 <div><span> <span> </span> O </span></div> 34 <div><span> <span> </span> P</span></div> 35 <div><span><span> </span> Q</span></div> 36 <div><span> <span> </span>R</span></div> 37 <div><span><span> </span>S</span></div> 38 <div><span><span></span>T</span></div>