blob: 4318f3b4f6d1edc8d5aac309276dd6a0851336ce [file] [log] [blame]
<div id="testUnquoted" style="background-image: url(file:///unquoted)"></div>
<div id="testQuoted" style="background-image: url('file:///quoted')"></div>
<div id="testShouldQuote" style="background-image: url('file:///should(Quote)')"></div>
<script>
function test(id, reason) {
alert(document.getElementById(id).style.getPropertyValue("background-image") + " (" + reason + ")");
}
if (window.testRunner)
testRunner.dumpAsText();
test("testUnquoted", "URL should be quoted");
test("testQuoted", "URL should be quoted");
test("testShouldQuote", "URL should be quoted");
</script>