blob: 78b5fef1294f7ef1b010a70dc0a5cc7dc39c3ff5 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
<!doctype html>
<html>
<head>
<style>
ul {
display:inline;
}
ul.closed * {
display:none;
}
ul::before {
content: 'before';
}
ul::after {
content: 'after';
}
</style>
<script>
function toggle(ul) {
if (ul.className !== 'closed') {
ul.className = 'closed';
} else {
ul.className = '';
}
document.body.offsetLeft;
}
function runTest() {
var button = document.getElementById("toggle");
var ul = document.querySelectorAll('ul')[0];
toggle(ul);
toggle(ul);
toggle(ul);
toggle(ul);
toggle(ul);
toggle(ul);
toggle(ul);
toggle(ul);
}
</script>
</head>
<body onload="runTest()">
<!-- [bug 93170] http://bugs.webkit.org/show_bug.cgi?id=91370 -->
<!-- Dynamically apply / not apply :after to inline elements. -->
<!-- If test passes, only 1 'before' and 1 'after' are shown. -->
<ul><li>1</li><li>2</li><li>3</li></ul>
</body>
</html>
|