5 <script src=
"../../resources/js-test.js"></script>
10 shorthandProperties
= [
20 "background-position",
32 element
= document
.createElement('span');
34 function canSetProperty(propertyName
) {
35 element
.style
.setProperty(propertyName
, 'initial');
36 return element
.style
.getPropertyValue(propertyName
) == 'initial';
39 function canRemoveProperty(propertyName
) {
40 element
.style
.removeProperty(propertyName
);
41 return element
.style
.getPropertyValue(propertyName
) != 'initial';
44 description("Tests that shorthand properties can be removed via CSSOM.");
46 for (i
= 0; i
< shorthandProperties
.length
; ++i
) {
47 var propertyName
= shorthandProperties
[i
];
49 shouldBe("canSetProperty('" + propertyName
+ "')", "true");
50 shouldBe("canRemoveProperty('" + propertyName
+ "')", "true");