cssstyledeclaration-removeProperty-all.html (778B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSSStyleDeclaration.removeProperty("all")</title> 4 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> 5 <link rel="author" title="Mozilla" href="https://mozilla.org"> 6 <link rel="help" href="https://drafts.csswg.org/cssom-1/#dom-cssstyledeclaration-removeproperty"> 7 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharnessreport.js"></script> 9 <script> 10 test(function() { 11 let style = document.createElement("div").style; 12 style.width = "40px"; 13 assert_equals(style.length, 1, "setter should work as expected"); 14 style.removeProperty("all"); 15 assert_equals(style.length, 0, "all is a shorthand of all properties, so should remove the property"); 16 }); 17 </script>