blob: 7de99ccc9c00e3b40f6ec7b3482a6938eb55f75c [file] [log] [blame]
<!DOCTYPE html>
<script src="resources/srcset-helper.js"></script>
<style>
#foo {
width:100px;
height:100px;
-webkit-border-image: url('resources/green-400-px-square.png') 10 10 10 10 stretch stretch;
}
</style>
<div>This test passes if the div below is a blue 100px square when the deviceScaleFactor is 1, and if it is a 100px green square when the deviceScaleFactor is 2. When run in the test harness, this test is distinct from image-set-as-background, because it ensures that the green image loads dynamically when the scale factor changes.</div>
<div id=foo></div>