OLD | NEW |
1 <!-- Based on fast/images/do-not-paint-below-image-baseline.html --> | 1 <!-- Based on fast/images/do-not-paint-below-image-baseline.html --> |
2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <script src="resources/paint-invalidation-test.js"></script> | 5 <script src="resources/paint-invalidation-test.js"></script> |
6 <script> | 6 <script> |
7 window.expectedPaintInvalidationObjects = [ | |
8 "LayoutImage IMG", | |
9 ]; | |
10 function paintInvalidationTest() | 7 function paintInvalidationTest() |
11 { | 8 { |
12 var things = document.getElementsByClassName("before"); | 9 var things = document.getElementsByClassName("before"); |
13 while (things.length) | 10 while (things.length) |
14 things[0].classList.remove("before"); | 11 things[0].classList.remove("before"); |
15 } | 12 } |
16 </script> | 13 </script> |
17 <style> | 14 <style> |
18 img { | 15 img { |
19 margin: 50px; | 16 margin: 50px; |
20 } | 17 } |
21 body { | 18 body { |
22 margin: 0px; | 19 margin: 0px; |
23 } | 20 } |
24 .before { | 21 .before { |
25 background-color: green; | 22 background-color: green; |
26 } | 23 } |
27 </style> | 24 </style> |
28 </head> | 25 </head> |
29 <body onload="runPaintInvalidationTest()"> | 26 <body onload="runPaintInvalidationTest()"> |
30 <img class="before" src="../../../fast/images/resources/59.jpg"> | 27 <img class="before" src="../../../fast/images/resources/59.jpg"> |
31 <p> When painting an inline image, do not paint below its baseline unless it
s selected. | 28 <p> When painting an inline image, do not paint below its baseline unless it
s selected. |
32 The invalidation rect should not extend outside the content rect of the
image. </p> | 29 The invalidation rect should not extend outside the content rect of the
image. </p> |
33 </body> | 30 </body> |
34 </html> | 31 </html> |
OLD | NEW |