 Chromium Code Reviews
 Chromium Code Reviews Issue 2716583002:
  Avoid negative content box sizes.  (Closed)
    
  
    Issue 2716583002:
  Avoid negative content box sizes.  (Closed) 
  | 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;"> | |
| 
mstensho (USE GERRIT)
2017/02/23 13:35:09
This test is valid, but it would also pass prior t
 
eae
2017/02/23 15:54:37
Agreed!
 | |
| 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 |