OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 div { |
| 4 border-width: 21px 30px 30px 21px; |
| 5 width: 75px; |
| 6 height: 75px; |
| 7 display: inline-block; |
| 8 border-image-source: url("../borders/resources/border-image.png"); |
| 9 border-image-slice: 21 30 30 21 fill; |
| 10 border-image-width: 1; |
| 11 border-image-outset: 1; |
| 12 } |
| 13 </style> |
| 14 <script src="../../resources/js-test.js"></script> |
| 15 <div id="test"></div> |
| 16 <script> |
| 17 // Force style recalc and layout. |
| 18 document.body.offsetTop; |
| 19 |
| 20 if (window.internals) |
| 21 shouldBe("window.internals.needsLayoutCount()", "0", true); |
| 22 |
| 23 // Changing border-image-outset will cause a repaint but no layout. |
| 24 document.getElementById("test").style['border-image-outset'] = '5'; |
| 25 |
| 26 if (window.internals) { |
| 27 shouldBe("window.internals.needsLayoutCount()", "0", true); |
| 28 } |
| 29 </script> |
OLD | NEW |