OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 a { | 5 a { |
6 position: absolute; | 6 position: absolute; |
7 display: block; | 7 display: block; |
8 outline: thin dotted green; | 8 outline: thin dotted green; |
9 outline-width: 0px; | 9 outline-width: 0px; |
10 } | 10 } |
11 | 11 |
12 a.updated { | 12 a.updated { |
13 outline-width: 5px; | 13 outline-width: 5px; |
14 clip: rect(0px, 100px, 100px, 0px); | 14 clip: rect(0px, 100px, 100px, 0px); |
15 } | 15 } |
16 </style> | 16 </style> |
17 <script src="resources/text-based-repaint.js"></script> | 17 <script src="resources/text-based-repaint.js"></script> |
18 <script> | 18 <script> |
19 function repaintTest() | 19 function repaintTest() |
20 { | 20 { |
21 document.getElementById("link").classList.add("updated"); | 21 document.getElementById("link").classList.add("updated"); |
22 } | 22 } |
23 window.addEventListener("load", runRepaintTest, false); | 23 window.addEventListener("load", runRepaintAndPixelTest, false); |
24 </script> | 24 </script> |
25 </head> | 25 </head> |
26 <body> | 26 <body> |
27 <p>This test checks that an outline change is correctly repainted.</p> | 27 <p>This test checks that an outline change is correctly repainted.</p> |
28 <p>There should be a 5px green outline below.</p> | 28 <p>There should be a 5px green outline below.</p> |
29 <ul> | 29 <ul> |
30 <li><a id="link">Lorem Ipsum</a></li> | 30 <li><a id="link">Lorem Ipsum</a></li> |
31 </ul> | 31 </ul> |
32 </body> | 32 </body> |
33 </html> | 33 </html> |
34 | 34 |
OLD | NEW |