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