blob: 880b9a8bdc30fa8b4ef4c1ab5360ce46c160049d [file] [log] [blame]
<div id="testUnquoted" style="background-image: url(file:///unquoted)"></div>
<div id="testNoQuotesNeeded" style="background-image: url('file:///noQuotesNeeded')"></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.layoutTestController)
layoutTestController.dumpAsText();
test("testUnquoted", "URL should not be quoted");
test("testNoQuotesNeeded", "URL should not be quoted");
test("testShouldQuote", "URL should be quoted");
</script>