layout/reftests/bugs/495385-2b.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html class="reftest-wait">
michael@0 3 <head>
michael@0 4 <!-- Test that inserting inline content can create frames for text around it -->
michael@0 5 <style>
michael@0 6 body > div { border:1px solid black; margin:1em;
michael@0 7 font-family:sans-serif; letter-spacing:2px; }
michael@0 8 </style>
michael@0 9 <script>
michael@0 10 function makeSpan(text) {
michael@0 11 var e = document.createElement("span");
michael@0 12 e.textContent = text;
michael@0 13 return e;
michael@0 14 }
michael@0 15 function loaded() {
michael@0 16 document.body.offsetHeight;
michael@0 17 var d1 = document.getElementById("d1");
michael@0 18 d1.insertBefore(makeSpan("Hello"), d1.firstChild);
michael@0 19 var d2 = document.getElementById("d2");
michael@0 20 d2.appendChild(makeSpan("Kitty"));
michael@0 21 var d3 = document.getElementById("d3");
michael@0 22 d3.insertBefore(makeSpan("Hello"), d3.firstChild.nextSibling);
michael@0 23 var d4 = document.getElementById("d4");
michael@0 24 d4.insertBefore(makeSpan("Kitty"), d4.lastChild);
michael@0 25 document.documentElement.removeAttribute('class');
michael@0 26 }
michael@0 27 document.addEventListener("MozReftestInvalidate", loaded, false);
michael@0 28 </script>
michael@0 29 </head>
michael@0 30 <body>
michael@0 31 <div id="d1"> <span>Kitty</span></div>
michael@0 32 <div id="d2"><span>Hello</span> </div>
michael@0 33 <div id="d3"><div></div> <span>Kitty</span></div>
michael@0 34 <div id="d4"><span>Hello</span> <div></div></div>
michael@0 35 </body>
michael@0 36 </html>

mercurial