summaryrefslogtreecommitdiffstats
path: root/layout/generic/crashtests/1638860-2.html
blob: a04861a662b33c7dbd3e42803809de071ebb6551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<html>
<body>
    <style>
        div {
            position: relative;
        }
        span,div {
            display: inline-grid;
            grid-template-columns: subgrid;
        }
        span {
            position: absolute;
        }
    </style>
    <script>
      window.addEventListener('load', () => {
        const span = document.createElementNS('http://www.w3.org/1999/xhtml', 'span')
        const text = document.createTextNode('BAR')
        span.appendChild(text)
        const div = document.getElementsByTagName('div')[0];
        div.appendChild(span)
      })
    </script>
<div>FOO</div>
</body>
</html>