| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> |
| <title>clip computed style</title> |
| div { height: 5em; width: 10em; font-size:12px } |
| var console = document.getElementById("console"); |
| console.appendChild(document.createTextNode(message + "\n")); |
| var div = document.getElementById("clip"); |
| if (getComputedStyle(div,'').getPropertyValue("clip") != "rect(5px, 24px, 1px, 12px)") { |
| div = document.getElementById("clip2"); |
| if (getComputedStyle(div,'').getPropertyValue("clip") != "auto") { |
| <body onload="runTest()"> |
| <div id="clip" style="clip: rect(5px, 2em, 1px, 1em)" ></div> |
| <div id="clip2" style="clip: auto" ></div> |