OLD | NEW |
1 <!-- Based on fast/repaint/text-in-relative-positioned-inline.html --> | 1 <!-- Based on fast/repaint/text-in-relative-positioned-inline.html --> |
2 <head> | 2 <head> |
3 <script src="resources/paint-invalidation-test.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
4 <script> | 4 <script> |
5 window.expectedPaintInvalidationObjects = [ | |
6 "InlineTextBox 'ab'", | |
7 "LayoutText #text", | |
8 "InlineFlowBox", | |
9 "LayoutInline (relative positioned) SPAN id='target'", | |
10 "LayoutText #text", | |
11 "RootInlineBox", | |
12 ]; | |
13 function paintInvalidationTest() | 5 function paintInvalidationTest() |
14 { | 6 { |
15 document.getElementById("target").style.display = "none"; | 7 document.getElementById("target").style.display = "none"; |
16 } | 8 } |
17 </script> | 9 </script> |
18 </head> | 10 </head> |
19 <body onload="runPaintInvalidationTest()"> | 11 <body onload="runPaintInvalidationTest()"> |
20 <div style="margin-left: 100px; font: 100px; -webkit-font-smoothing: none; h
eight: 100px;"> | 12 <div style="margin-left: 100px; font: 100px; -webkit-font-smoothing: none; h
eight: 100px;"> |
21 <span id="target" style="position: relative; left: -100px; color: red;">
ab</span> | 13 <span id="target" style="position: relative; left: -100px; color: red;">
ab</span> |
22 </div> | 14 </div> |
23 <div style="width: 100px; height: 100px; background-color: green; margin-top
: -100px;"></div> | 15 <div style="width: 100px; height: 100px; background-color: green; margin-top
: -100px;"></div> |
24 </body> | 16 </body> |
OLD | NEW |