blob: 572f837f7a9e0916323aa295355533f63ad250fd [file] [log] [blame]
<!DOCTYPE html>
<script src='../../../resources/testharness.js'></script>
<script src='../../../resources/testharnessreport.js'></script>
<script src='property-suite.js'></script>
<script src='config-templates.js'></script>
<div id="testElement"></div>
<script>
test(function() {
testElement.attributeStyleMap.set('background-image', new CSSURLImageValue(''));
document.body.offsetTop;
assert_equals(testElement.attributeStyleMap.get('background-image').intrinsicHeight, null);
assert_equals(testElement.attributeStyleMap.get('background-image').intrinsicWidth, null);
}, "Check that setting background-image to CSSURLImageValue('') doesn't cause a crash");
runInlineStylePropertyMapTests( {
property: 'background-image',
validKeywords: [
'none',
],
validObjects: [
new CSSURLImageValue(window.location.href + '/resources/1x1-green.jpg'),
new CSSURLImageValue(window.location.href)
],
supportsMultiple: true,
separator: ' ',
invalidObjects: [new CSSUnitValue(4, 'px')]
});
</script>