| <html> | |
| <head> | |
| <meta description="A negative border width property should not be valid" feature="DOMStyle" /> | |
| <title>Negative border width property</title> | |
| <style type="text/css"> | |
| #testDiv | |
| { | |
| border: solid black 10px; | |
| } | |
| </style> | |
| <script> | |
| if (window.testRunner) | |
| window.testRunner.dumpAsText(); | |
| </script> | |
| </head> | |
| <body> | |
| <div id="testDiv" style="border-top-width: -10px;">This div should have a 10px border</div> | |
| <div id="testresult">Fail</div> | |
| <script type="text/javascript"> | |
| if(testDiv.style.borderTopWidth == "") | |
| { | |
| document.getElementById("testresult").innerHTML = "Pass"; | |
| } | |
| </script> | |
| </body> | |
| </html> |