blob: a013daba6a723c200848dfa7f7fa154bb98f5918 [file] [log] [blame]
<!-- Based on fast/images/do-not-paint-below-image-baseline.html -->
<!DOCTYPE html>
<script src="resources/paint-invalidation-test.js"></script>
window.expectedPaintInvalidationObjects = [
"LayoutImage IMG",
function paintInvalidationTest()
var things = document.getElementsByClassName("before");
while (things.length)
img {
margin: 50px;
body {
margin: 0px;
.before {
background-color: green;
<body onload="runPaintInvalidationTest()">
<img class="before" src="../../../fast/images/resources/59.jpg">
<p> When painting an inline image, do not paint below its baseline unless its selected.
The invalidation rect should not extend outside the content rect of the image. </p>