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