| <div>Tests parsing style declarations without closing braces and parentheses. "User agents must close all open constructs ... at the end of the style sheet." |
| (<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 |
| all braces and parentheses are closed.</div> |
| var consoleElement = document.getElementById("console"); |
| for (var i = 1; i <= NUMBER_OF_TESTS; i++) { |
| var div = document.createElement("DIV"); |
| div.className = "test" + i; |
| document.body.appendChild(div); |
| var width = window.getComputedStyle(div).getPropertyValue("width"); |
| document.body.removeChild; |
| consoleElement.textContent += "Test " + i + " failed\n"; |
| consoleElement.textContent += "All tests passed\n"; |