Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / max-height-and-max-width.html
blob8d4828a50b4926e2623bc855451aae71ca814d51
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head id="myhead">
4 <script src="../../resources/js-test.js"></script>
5 <script>
6 if (window.testRunner)
7 window.testRunner.dumpAsText();
9 function doTest()
11 description("This succeeds if max-height and max-width are not set together, but are different values.");
13 var box = document.createElement("div");
14 box.style['max-height'] = "20px";
15 box.style['max-width'] = "30px";
17 document.getElementById("body").appendChild(box);
19 var style = window.getComputedStyle(box);
20 if(style.getPropertyValue("max-height") == style.getPropertyValue("max-width"))
21 testFailed("max-width is NOT independent of max-height.");
22 else
23 testPassed("max-width is independent of max-height.");
25 </script>
26 </head>
27 <body onload="doTest()" id="body">
28 </body>
29 </html>