1
0
Fork 0
firefox/testing/web-platform/tests/css/cssom/cssstyledeclaration-removeProperty-all.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

17 lines
778 B
HTML

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