Bug 1535077 - Switch to using Ref and PureComponent in the SearchBox component. r...
[gecko.git] / layout / reftests / bugs / 495385-4.html
blob2cdc764c81e8de6ce4b9e19c5f39e713622eeebc
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <!-- Test that inserting inline content can create frames for text around it
5 when there are <br>s -->
6 <style>
7 body > div { border:1px solid black; margin:1em; }
8 </style>
9 <script>
10 function makeSpan(text) {
11 var e = document.createElement("span");
12 e.textContent = text;
13 return e;
15 function loaded() {
16 var d3 = document.getElementById("d3");
17 d3.insertBefore(makeSpan("Hello"), d3.firstChild.nextSibling);
18 var d4 = document.getElementById("d4");
19 d4.insertBefore(makeSpan("Kitty"), d4.lastChild);
21 </script>
22 </head>
23 <body onload="loaded()">
24 <div id="d3"><br> <span>Kitty</span></div>
25 <div id="d4"><span>Hello</span> <br></div>
26 </body>
27 </html>