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