summaryrefslogtreecommitdiffstats
path: root/layout/reftests/abs-pos/continuation-positioned-inline-2.html
blob: 669f3753b078e1c18d97ed88c44ce95e41b835d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html>
  <body onload="loaded()">
    <span style="position: relative; top: 100px">foo<br>
      <span id="ins-point">bar</span></span>
    <script>
      function loaded() {
        var insPoint = document.getElementById("ins-point");
        var span = document.createElement("span");
        span.style.position = "absolute";
        span.style.top = 0;
        span.appendChild(document.createTextNode("abs"));
        insPoint.insertBefore(span, insPoint.firstChild);
      }
    </script>
  </body>
</html>