OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../resources/ahem.js"></script> |
2 <script src="resources/text-based-repaint.js"></script> | 3 <script src="resources/text-based-repaint.js"></script> |
3 <script> | 4 <script> |
4 if (window.internals) { | 5 if (window.internals) { |
5 onload = runRepaintAndPixelTest; | 6 onload = runRepaintAndPixelTest; |
6 } else { | 7 } else { |
7 onclick = repaintTest; | 8 onclick = repaintTest; |
8 } | 9 } |
9 function repaintTest() { | 10 function repaintTest() { |
10 var target = document.getElementById('target'); | 11 var target = document.getElementById('target'); |
11 target.style.color = 'green'; | 12 target.style.color = 'green'; |
12 } | 13 } |
13 </script> | 14 </script> |
14 <div id="target" style="-webkit-columns:2; -webkit-backface-visibility:hidden; w
idth:630px; font:20px/1 Ahem; color:red;"> | 15 <div id="target" style="-webkit-columns:2; -webkit-backface-visibility:hidden; w
idth:630px; font:20px/1 Ahem; color:red;"> |
15 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce | 16 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce |
16 varius, metus eu fringilla pulvinar, ipsum sapien ultricies arcu, | 17 varius, metus eu fringilla pulvinar, ipsum sapien ultricies arcu, |
17 non condimentum quam est eu purus. Ut nisl libero, suscipit ut leo | 18 non condimentum quam est eu purus. Ut nisl libero, suscipit ut leo |
18 eget, dapibus ultrices dolor. | 19 eget, dapibus ultrices dolor. |
19 </div> | 20 </div> |
20 <p>All text above should be green (if tested manually, you need to click first).
</p> | 21 <p>All text above should be green (if tested manually, you need to click first).
</p> |
OLD | NEW |