10 width: calc((((((
100px
19 <div>Tests parsing style declarations without closing braces and parentheses.
"User agents must close all open constructs ... at the end of the style sheet.
"
20 (
<a href=
"http://www.w3.org/TR/CSS21/syndata.html#parsing-errors">http://www.w3.org/TR/CSS21/syndata.html#parsing-errors
</a>). So it must be parsed as if
21 all braces and parentheses are closed.
</div>
22 <div id=
"console"></div>
24 if (window
.testRunner
)
25 testRunner
.dumpAsText();
27 var NUMBER_OF_TESTS
= 3;
29 var consoleElement
= document
.getElementById("console");
30 for (var i
= 1; i
<= NUMBER_OF_TESTS
; i
++) {
31 var div
= document
.createElement("DIV");
32 div
.className
= "test" + i
;
33 document
.body
.appendChild(div
);
34 var width
= window
.getComputedStyle(div
).getPropertyValue("width");
35 document
.body
.removeChild
;
37 if (width
!= "100px") {
38 consoleElement
.textContent
+= "Test " + i
+ " failed\n";
43 consoleElement
.textContent
+= "All tests passed\n";