OLD | NEW |
1 <!-- Based on fast/repaint/border-outline-0.html --> | 1 <!-- Based on fast/repaint/border-outline-0.html --> |
2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
3 | 3 |
4 <style> | 4 <style> |
5 #border-image, | 5 #border-image, |
6 #border, | 6 #border, |
7 #outline { | 7 #outline { |
8 height: 100px; | 8 height: 100px; |
9 width: 100px; | 9 width: 100px; |
10 } | 10 } |
11 | 11 |
12 td { | 12 td { |
13 height: 50px; | 13 height: 50px; |
14 width: 50px; | 14 width: 50px; |
15 border-style: hidden; | 15 border-style: hidden; |
16 } | 16 } |
17 | 17 |
18 #border-image { | 18 #border-image { |
19 border-image: url(../../../fast/repaint/_example.png) 100% 100 100 round; | 19 border-image: url(../../../fast/repaint/_example.png) 100% 100 100 round; |
20 border-style: none; | 20 border-style: none; |
21 border-width: 50px; | 21 border-width: 50px; |
22 position: absolute; | 22 position: absolute; |
23 top: 10px; | 23 top: 10px; |
24 left: 10px; | 24 left: 10px; |
25 } | 25 } |
26 </style> | 26 </style> |
27 | 27 |
28 <script src="resources/paint-invalidation-test.js"></script> | 28 <script src="resources/paint-invalidation-test.js"></script> |
29 <script> | 29 <script> |
30 window.expectedPaintInvalidationObjects = [ | |
31 "LayoutBlockFlow (positioned) DIV id='border-image'", | |
32 ]; | |
33 function paintInvalidationTest() { | 30 function paintInvalidationTest() { |
34 var border = document.getElementById("border"); | 31 var border = document.getElementById("border"); |
35 border.style.border = "0"; | 32 border.style.border = "0"; |
36 | 33 |
37 var outline = document.getElementById("outline"); | 34 var outline = document.getElementById("outline"); |
38 outline.style.outline = "0"; | 35 outline.style.outline = "0"; |
39 | 36 |
40 var outline = document.getElementById("cell"); | 37 var outline = document.getElementById("cell"); |
41 outline.style.borderWidth = "0"; | 38 outline.style.borderWidth = "0"; |
42 | 39 |
43 var borderImage = document.getElementById("border-image"); | 40 var borderImage = document.getElementById("border-image"); |
44 borderImage.style.borderWidth = "0"; | 41 borderImage.style.borderWidth = "0"; |
45 } | 42 } |
46 onload = runPaintInvalidationTest; | 43 onload = runPaintInvalidationTest; |
47 </script> | 44 </script> |
48 | 45 |
49 <p>Tests that setting an outline or a border of 0 on an element without a border
or outline doesn't repaint.</p> | 46 <p>Tests that setting an outline or a border of 0 on an element without a border
or outline doesn't repaint.</p> |
50 | 47 |
51 <div id="border"></div> | 48 <div id="border"></div> |
52 <div id="outline"></div> | 49 <div id="outline"></div> |
53 <div id="border-image"></div> | 50 <div id="border-image"></div> |
54 | 51 |
55 <table> | 52 <table> |
56 <tr> | 53 <tr> |
57 <td id="cell"></td> | 54 <td id="cell"></td> |
58 <td></td> | 55 <td></td> |
59 </tr> | 56 </tr> |
60 </table> | 57 </table> |
OLD | NEW |