OLD | NEW |
1 <!-- Based on fast/repaint/vertical-rl-as-paint-container.html --> | 1 <!-- Based on fast/repaint/vertical-rl-as-paint-container.html --> |
2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
3 <script src="resources/paint-invalidation-test.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
4 <script> | 4 <script> |
5 onload = runPaintInvalidationTest; | 5 onload = runPaintInvalidationTest; |
6 window.expectedPaintInvalidationObjects = [ | |
7 "LayoutText #text", | |
8 "InlineTextBox 'Lorem ipsum dolor'", | |
9 "InlineTextBox 'sit amet,'", | |
10 "InlineTextBox 'consectetur'", | |
11 "InlineTextBox 'adipiscing elit.'", | |
12 ]; | |
13 function paintInvalidationTest() { | 6 function paintInvalidationTest() { |
14 var target = document.getElementById('target'); | 7 var target = document.getElementById('target'); |
15 target.style.color = 'green'; | 8 target.style.color = 'green'; |
16 } | 9 } |
17 </script> | 10 </script> |
18 <div id="target" style="-webkit-writing-mode:vertical-rl; -webkit-backface-visib
ility:hidden; width:600px; height:400px; font:20px/1 Ahem; color:red;"> | 11 <div id="target" style="-webkit-writing-mode:vertical-rl; -webkit-backface-visib
ility:hidden; width:600px; height:400px; font:20px/1 Ahem; color:red;"> |
19 Lorem ipsum dolor sit amet, consectetur adipiscing elit. | 12 Lorem ipsum dolor sit amet, consectetur adipiscing elit. |
20 </div> | 13 </div> |
21 <p>All text above should be green.</p> | 14 <p>All text above should be green.</p> |
OLD | NEW |