insert-into-split-inline-14.html 799 B

123456789101112131415161718192021222324
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>CSS 2.1 Test Suite: handling of blocks inside inlines</title>
  5. <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
  6. <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
  7. <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level"/>
  8. <meta name="flags" content="dom" />
  9. <style>
  10. #i { border: 2px solid; }
  11. #i::before { display: block; content: "One"; }
  12. </style>
  13. <script>
  14. function doTest() {
  15. var i = document.getElementById("i");
  16. i.insertBefore(document.createTextNode("Two"), i.firstChild);
  17. }
  18. </script>
  19. </head>
  20. <body onload="doTest()">
  21. <span id="i"><span style="display: none"></span></span>
  22. </body>
  23. </html>