3 <div id=
"results">This tests catching of divide by
0 in calc() at parse time
<br><br></div>
6 window
.testRunner
.dumpAsText();
12 "100px / (2 - (-62 + 64))",
15 "100px * (1 / (2 - 2))",
16 "100px * (1 / (2 - (-62 + 64)))",
19 var results
= document
.getElementById("results");
20 var dummy
= document
.getElementById("dummy");
21 for (var i
= 0; i
< tests
.length
; ++i
) {
22 var expression
= tests
[i
];
23 dummy
.style
.width
= 'calc(' + expression
+ ')';
24 results
.innerHTML
+= expression
+ " => " + dummy
.style
.width
+ "<br>";