OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <!-- The left offset here is just to push the huge thing out of view, so that a |
| 3 human (yes, YOU!) can see the test results. --> |
| 4 <div style="position:absolute; left:100%; border-width:1234567890px; border-styl
e:solid;"> |
| 5 <div id="abspos" style="position:absolute; left:0; top:0; right:0; bottom:0;
"></div> |
| 6 </div> |
| 7 <script src="../../resources/testharness.js"></script> |
| 8 <script src="../../resources/testharnessreport.js"></script> |
| 9 <script> |
| 10 test(() => { |
| 11 assert_equals(document.getElementById("abspos").offsetWidth, 0); |
| 12 assert_equals(document.getElementById("abspos").offsetHeight, 0); |
| 13 }, "Sizes should never become negative"); |
| 14 </script> |
OLD | NEW |