summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/select/select-generated-content.html
blob: 92d47a2b2dbd0d6fb061062b26d40655075b59e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html>
<head>
<style>
.s1::before { display: table; content: counter(section); }
.s2::after { display: table; content: counter(section); }
</style>
<script>
function boom() {
    var s1 = document.createElement('select');
    s1.setAttribute('class', 's1');
    document.documentElement.appendChild(s1);
    var s2 = document.createElement('select');
    s2.setAttribute('class', 's2');
    document.documentElement.appendChild(s2);
    if (window.testRunner)
        testRunner.dumpAsText();
}
window.onload = boom;
</script>
<head>
<body>PASS unless crash.</body>
</html>