| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>Test UseCounters for border-image with border-style: none</title> | 2 <title>Test UseCounters for border-image with border-style: none</title> |
| 3 <script src="../../resources/js-test.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
| 4 <script src="../../resources/run-after-layout-and-paint.js"></script> | 4 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 5 <style> | 5 <style> |
| 6 .test { | 6 .test { |
| 7 width: 100px; | 7 width: 100px; |
| 8 height: 100px; | 8 height: 100px; |
| 9 } | 9 } |
| 10 </style> | 10 </style> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 style.borderImage = 'linear-gradient(to bottom, blue, white) fill 1
repeat'; | 36 style.borderImage = 'linear-gradient(to bottom, blue, white) fill 1
repeat'; |
| 37 | 37 |
| 38 runAfterLayoutAndPaint(function() { | 38 runAfterLayoutAndPaint(function() { |
| 39 shouldBeFalse("window.internals.isUseCounted(document, BorderIma
geWithBorderStyleNone)"); | 39 shouldBeFalse("window.internals.isUseCounted(document, BorderIma
geWithBorderStyleNone)"); |
| 40 | 40 |
| 41 // Add a top border width that according to spec should be clamp
ed to zero because | 41 // Add a top border width that according to spec should be clamp
ed to zero because |
| 42 // border-top-style is none; expect hit | 42 // border-top-style is none; expect hit |
| 43 style.borderTopWidth = '10px'; | 43 style.borderTopWidth = '10px'; |
| 44 | 44 |
| 45 runAfterLayoutAndPaint(function() { | 45 runAfterLayoutAndPaint(function() { |
| 46 shouldBeTrue("window.internals.isUseCounted(document, Border
ImageWithBorderStyleNone)"); | 46 shouldBeFalse("window.internals.isUseCounted(document, Borde
rImageWithBorderStyleNone)"); |
| 47 finishJSTest(); | 47 finishJSTest(); |
| 48 }); | 48 }); |
| 49 }); | 49 }); |
| 50 }); | 50 }); |
| 51 }); | 51 }); |
| 52 </script> | 52 </script> |
| OLD | NEW |