blob: 7351fc91561e6465b948fb22ddc6236826667a5c [file] [log] [blame]
<!DOCTYPE html>
<html>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<style>
h1 {
overflow: hidden;
width: 792px;
height: 160px;
}
h1:before {
content: url("resources/red-at-12-oclock-with-color-profile.jpg");
display: inline-block;
margin: 0px -20px;
}
</style>
</body>
<!-- The blue sector of the content image should be at 12 o'clock. -->
<h1>
pseudo-content image replacement
</h1>
</body>
<script>
window.onload = function() {
if (window.testRunner)
runAfterLayoutAndPaint(changeColorProfile);
};
function changeColorProfile() {
setTimeout(function() { testRunner.setColorProfile('colorSpin', done) }, 0);
}
function done() {
setTimeout(function() { testRunner.notifyDone() }, 0);
}
if (window.testRunner) {
testRunner.dumpAsTextWithPixelResults();
testRunner.waitUntilDone();
}
</script>
</html>