blob: af521c9100b38d4892e41e34e64e1121d50920c4 [file] [log] [blame]
<!DOCTYPE html>
<!--
| Test case for the background shorthand property with ordered position, color,
| repeat and image.
-->
<html>
<head>
<style>
div {
width: 500px;
height: 400px;
}
</style>
<script>
if (window.testRunner) {
window.testRunner.waitUntilDone();
}
var image = new Image();
var image_name = 'cobalt.png';
image.onload = function() {
var cobalt = document.getElementById('image');
cobalt.style.background = 'right #ff6363 repeat-x url(' + image_name +')';
if (window.testRunner) {
window.testRunner.notifyDone();
}
}
image.src = image_name;
</script>
</head>
<body>
<div id='image'></div>
</body>
</html>