blob: 9aa3ebb59447363722c58888f8e57e7ab860a961 (
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
|
<!DOCTYPE html>
<style>
.transition {
height: calc(100% - 10px);
-webkit-transition: height 50ms;
}
.flim + .sibling {
}
</style>
<body>
This test checks class changes affecting sibling selectors happening during transitions over calculated lengths.
The test passes if it does not crash.
</body>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
div = document.createElement('div');
div.setAttribute('class', 'sibling');
document.body.appendChild(div);
th = document.createElement('th'); // td, tr also cause test to fail
th.setAttribute('class', 'transition');
document.body.appendChild(th);
function boom() {
div.setAttribute('class', 'stix');
if (window.testRunner)
testRunner.notifyDone();
}
setTimeout(boom, 1);
</script>
|