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