blob: cc2c9261960de65ea81257fd69dbc5488a51ff04 (
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
|
<!DOCTYPE html>
<style>
.test {
-webkit-transition: width 30s;
}
.test:nth-child(2n) {
width: calc(-8em + 59%);
}
</style>
This tests transitioning of elements containing a calc expression. The test passes if it does not crash.
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
elementA = document.createElement('a');
document.documentElement.appendChild(elementA);
elementQ = document.createElement('q');
document.documentElement.appendChild(elementQ);
elementStrong = document.createElement('strong');
document.documentElement.appendChild(elementStrong);
elementFieldSet = document.createElement('fieldset');
elementFieldSet.setAttribute('class', 'test');
document.documentElement.appendChild(elementFieldSet);
elementSection = document.createElement('section');
function boom() {
try {
elementSection.appendChild(elementQ);
} catch (e) {
}
if (window.testRunner)
testRunner.notifyDone();
}
setTimeout(boom, 1);
</script>
|