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