block-in-inline-whitespace-001b.xht (1001B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> 2 <title>CSS Test: blocks inside inlines – whitespace-present-1b</title> 3 <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> 4 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> 5 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" /> 6 <link rel="match" href="block-in-inline-whitespace-001-ref.xht"/> 7 <meta name="flags" content="dom" /> 8 <style type="text/css"> 9 body > span { border: 3px solid blue } 10 </style> 11 <script type="text/javascript"> 12 function doIt() { 13 var t = document.createTextNode(" "); 14 var d = document.getElementById("d"); 15 d.parentNode.insertBefore(t, d); 16 } 17 </script> 18 </head> 19 <body onload="doIt()"> 20 <span> 21 <div>One</div><div id="d">Two</div> 22 </span> 23 24 25 </body></html>