Skip to content

Commit 4435c35

Browse files
Loirooriolmoz-wptsync-bot
authored andcommitted
Exclude 'size' from the 'all' shorthand.
Differential Revision: https://phabricator.services.mozilla.com/D162568 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1800950 gecko-commit: 76e180dbe1448c8e1bfab633acb19f8b495b4380 gecko-reviewers: emilio
1 parent e910823 commit 4435c35

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

css/cssom/cssom-getPropertyValue-common-checks.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,11 @@
7272
const result = computedStyle.getPropertyValue(property);
7373
if (CSS.supports(property, result)) {
7474
initialValues.set(property, result);
75-
} else if (property === "all") {
76-
bad.push("all");
77-
} else {
75+
} else if (property !== "all") {
7876
bad.push([property, result]);
7977
}
8078
}
81-
assert_array_equals(bad, ["all"]);
79+
assert_array_equals(bad, []);
8280
}, "All properties (except 'all') can serialize their initial value (computed)");
8381

8482
test(function() {
@@ -87,7 +85,7 @@
8785
style.cssText = "";
8886
style.setProperty(property, value);
8987
const result = style.getPropertyValue(property);
90-
if (!CSS.supports(property, result)) {
88+
if (!CSS.supports(property, result) && property !== "all") {
9189
bad.push([property, value, result]);
9290
}
9391
}
@@ -121,12 +119,12 @@
121119
style.setProperty(longhand, initialValues.get(longhand));
122120
}
123121
const result = style.getPropertyValue(shorthand);
124-
if (!CSS.supports(shorthand, result)) {
122+
if (!CSS.supports(shorthand, result) && shorthand !== "all") {
125123
bad.push([shorthand, result]);
126124
}
127125
}
128126
assert_array_equals(bad, []);
129-
}, "All shorthands can serialize their longhands set to their initial value");
127+
}, "All shorthands (except 'all') can serialize their longhands set to their initial value");
130128

131129
test(function() {
132130
const bad = [];

0 commit comments

Comments
 (0)