|
72 | 72 | const result = computedStyle.getPropertyValue(property);
|
73 | 73 | if (CSS.supports(property, result)) {
|
74 | 74 | initialValues.set(property, result);
|
75 |
| - } else if (property === "all") { |
76 |
| - bad.push("all"); |
77 |
| - } else { |
| 75 | + } else if (property !== "all") { |
78 | 76 | bad.push([property, result]);
|
79 | 77 | }
|
80 | 78 | }
|
81 |
| - assert_array_equals(bad, ["all"]); |
| 79 | + assert_array_equals(bad, []); |
82 | 80 | }, "All properties (except 'all') can serialize their initial value (computed)");
|
83 | 81 |
|
84 | 82 | test(function() {
|
|
87 | 85 | style.cssText = "";
|
88 | 86 | style.setProperty(property, value);
|
89 | 87 | const result = style.getPropertyValue(property);
|
90 |
| - if (!CSS.supports(property, result)) { |
| 88 | + if (!CSS.supports(property, result) && property !== "all") { |
91 | 89 | bad.push([property, value, result]);
|
92 | 90 | }
|
93 | 91 | }
|
|
121 | 119 | style.setProperty(longhand, initialValues.get(longhand));
|
122 | 120 | }
|
123 | 121 | const result = style.getPropertyValue(shorthand);
|
124 |
| - if (!CSS.supports(shorthand, result)) { |
| 122 | + if (!CSS.supports(shorthand, result) && shorthand !== "all") { |
125 | 123 | bad.push([shorthand, result]);
|
126 | 124 | }
|
127 | 125 | }
|
128 | 126 | 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"); |
130 | 128 |
|
131 | 129 | test(function() {
|
132 | 130 | const bad = [];
|
|
0 commit comments