control-chars-00D.html (1218B)
1 <!doctype html> 2 <meta charset=utf-8> 3 <title>U+000D must be treated the same as U+0020</title> 4 <link rel=author title="Florian Rivoal" href="https://florian.rivoal.net"> 5 <link rel=help href="https://drafts.csswg.org/css-text-3/#white-space-processing"> 6 <link rel=match href="reference/control-chars-00D-ref.html"> 7 <meta name=flags content=""> 8 <meta name=assert content="U+000D must be treated as U+0020"> 9 <style> 10 div { 11 font-size: 2em; 12 font-family: monospace; 13 color: blue; 14 width: 4ch; 15 } 16 #ref { 17 color: orange; 18 } 19 .p {white-space: pre;} 20 .pw {white-space: pre-wrap;} 21 .pl {white-space: pre-line;} 22 .bs {white-space: break-spaces;} 23 .nw {white-space: nowrap;} 24 </style> 25 26 <p>Test passes if blue charaters are arranged exactly in the same way as the orange ones. 27 28 <div>A





B
C<span class=p>


</span>D<span class=pw>


</span>E<span class=pl>





</span>F<span class=bs>


</span>G<span class=nw>




</span>H</div> 29 30 <div id=ref>A B C<span class=p> </span>D<span class=pw> </span>E<span class=pl> </span>F<span class=bs> </span>G<span class=nw> </span>H</div>