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