OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <style> | 2 <style> |
3 div { | 3 div { |
4 border-width: 21px 30px 30px 21px; | 4 border-width: 21px 30px 30px 21px; |
5 width: 75px; | 5 width: 75px; |
6 height: 75px; | 6 height: 75px; |
7 display: inline-block; | 7 display: inline-block; |
8 border-image-source: url("../borders/resources/border-image.png"); | 8 border-image-source: url("../borders/resources/border-image.png"); |
9 border-image-slice: 21 30 30 21 fill; | 9 border-image-slice: 21 30 30 21 fill; |
10 border-image-width: 1; | 10 border-image-width: 1; |
11 } | 11 } |
12 </style> | 12 </style> |
13 <script src="resources/text-based-repaint.js"></script> | 13 <script src="resources/text-based-repaint.js"></script> |
14 <script> | 14 <script> |
15 function repaintTest() | 15 function repaintTest() |
16 { | 16 { |
17 // Adding border-image-outset will cause a repaint but no layout. | 17 // Adding border-image-outset will cause a repaint but no layout. |
18 document.getElementById("test").style['border-image-outset'] = '5'; | 18 document.getElementById("test").style['border-image-outset'] = '5'; |
19 } | 19 } |
20 window.onload = runRepaintTest; | 20 window.onload = runRepaintAndPixelTest; |
21 </script> | 21 </script> |
22 <div id="test"></div> | 22 <div id="test"></div> |
23 <p> | 23 <p> |
24 Tests the repainting of border-image-outset when added. | 24 Tests the repainting of border-image-outset when added. |
25 </p> | 25 </p> |
OLD | NEW |