blob: 625e84bf041e0445fecec516299eb50a9d498c90 [file] [log] [blame]
<!DOCTYPE html>
<!--
| Test case for the background shorthand property with ordered color, repeat,
| position 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 = '#ff6363 repeat-x center url('+ image_name +')';
if (window.testRunner) {
window.testRunner.notifyDone();
}
}
image.src = image_name;
</script>
</head>
<body>
<div id='image'></div>
</body>
</html>