line-height-preserved-segment-break.html (868B)
1 <!-- quirks mode --> 2 <link rel="author" title="Martin Robinson" href="mrobinson@igalia.com"> 3 <link rel="help" href="https://quirks.spec.whatwg.org/#the-line-height-calculation-quirk"> 4 <link rel="help" href="https://drafts.csswg.org/css-text/#valdef-white-space-pre-line"> 5 <link rel="match" href="../css/reference/ref-filled-green-100px-square.xht"> 6 7 <style> 8 .container { 9 width: 100px; 10 background: green; 11 white-space: pre-line; 12 } 13 14 .inline-box { 15 line-height: 100px; 16 } 17 </style> 18 19 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 20 <div style="width: 100px; height: 100px; background: red;"> 21 <!-- The preserved segment break in the span should mean that "The line height calculation 22 quirk" does not apply. --> 23 <div class="container"><span class="inline-box">
</span></div> 24 </div>