1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../js/resources/js-test-pre.js"></script>
6 if (window.layoutTestController)
7 window.layoutTestController.dumpAsText();
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.");
23 testPassed("max-width is independent of max-height.");
27 <body onload="doTest()" id="body">