| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <script src="../../../resources/js-test.js"></script> | |
| 3 <div id="parent" style="width: 200px; height: 200px;"> | |
| 4 <iframe id="iframe1" seamless style="min-width: 300px; min-height: 300px " src="
resources/square.html"></iframe> | |
| 5 <iframe id="iframe2" seamless style="max-width: 50px; max-height: 50px" src="res
ources/square.html"></iframe> | |
| 6 </div> | |
| 7 <script> | |
| 8 debug("Test that seamless iframes respect min/max height/width CSS styles.") | |
| 9 window.onload = function () { | |
| 10 window.iframe1 = document.getElementById("iframe1"); | |
| 11 window.iframe2 = document.getElementById("iframe2"); | |
| 12 | |
| 13 // Seamless should respect min/max CSS values like any other element. | |
| 14 shouldBeEqualToString("window.getComputedStyle(iframe1).width", "300px"); | |
| 15 shouldBeEqualToString("window.getComputedStyle(iframe1).height", "300px"); | |
| 16 | |
| 17 shouldBeEqualToString("window.getComputedStyle(iframe2).width", "50px"); | |
| 18 shouldBeEqualToString("window.getComputedStyle(iframe2).height", "50px"); | |
| 19 } | |
| 20 </script> | |
| OLD | NEW |