blob: e5ab75e94a4dd0dc98b305fb1db99d98784ad808 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
<!doctype html>
<head>
<style>
body {
font-family: Arial;
}
span {
/* Must be inline to cause a continuation chain */
display: inline;
}
span:before,
span:after {
/* Not requireed for the test, just makes it easier to see what's going on */
display: inline-block;
padding: 5px;
margin: 5px;
border: 1px solid red;
}
span:before {
content: "A";
}
span:after {
/* This content will get incorrectly repeated in the continuation */
content: "B";
}
</style>
</head>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
function runTest() {
setTimeout(function() {
// Cause a style recalc.
document.querySelector('span').style.fontFamily = 'Arial';
if (window.testRunner)
testRunner.notifyDone();
}, 10);
};
</script>
<body onload="runTest()">
<!-- [bug 93170] http://bugs.webkit.org/show_bug.cgi?id=91370 -->
<!-- If test passes, you should see A A A B B B. -->
<span>
<span>
<span>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</span>
</span>
</span>
</body>
|