Regression(r188105): Seems to have caused crashes during PLT on some iPads
[WebKit-https.git] / LayoutTests / fast / css / column-width-calculated-value.html
1 <!DOCTYPE html>
2 <body>
3 <script src="../../resources/js-test-pre.js"></script>
4 <div id="testDiv"></div>
5 <script>
6 description("Tests assigning a calculated value to 'column-width' CSS property.");
7
8 var testDiv = document.getElementById("testDiv");
9
10 shouldBeEmptyString("testDiv.style['column-width']");
11 evalAndLog("testDiv.style['column-width'] = 'calc(100px * 2)'");
12 shouldBeEqualToString("testDiv.style['column-width']", "calc(200px)");
13 shouldBeEqualToString("window.getComputedStyle(testDiv).getPropertyValue('column-width')", "200px");
14
15 debug("0px is not a valid value");
16 evalAndLog("testDiv.style['column-width'] = 'calc(0px * 2)'");
17 shouldBeEqualToString("testDiv.style['column-width']", "calc(200px)");
18 shouldBeEqualToString("window.getComputedStyle(testDiv).getPropertyValue('column-width')", "200px");
19
20 </script>
21 <script src="../../resources/js-test-post.js"></script>
22 </body>