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