pre-wrap-tab-005.html (803B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text level 3 Test: pre-wrap tabs hang</title> 4 <link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/"> 5 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2"> 6 <link rel="match" href="reference/pre-wrap-001-ref.html"> 7 <meta name="assert" content="a sequence of pre-wrap tabs at the end of a line hangs."> 8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 9 <style> 10 div { 11 font: 20px/1 Ahem; 12 } 13 #test { 14 white-space: pre-wrap; 15 color: green; 16 width: 2ch; 17 } 18 #ref { 19 color: red; 20 position: absolute; 21 z-index:-1; 22 } 23 </style> 24 25 <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p> 26 <div id=ref>XX<br>XX</div> 27 <div id=test>X<wbr>X		XX</div>