cssstyle 5.3.1 → 5.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -186,7 +186,19 @@ class CSSStyleDeclaration {
|
|
|
186
186
|
);
|
|
187
187
|
if (valueObj?.children) {
|
|
188
188
|
const properties = new Map();
|
|
189
|
+
let shouldSkipNext = false;
|
|
189
190
|
for (const item of valueObj.children) {
|
|
191
|
+
if (item.type === "Atrule") {
|
|
192
|
+
continue;
|
|
193
|
+
}
|
|
194
|
+
if (item.type === "Rule") {
|
|
195
|
+
shouldSkipNext = true;
|
|
196
|
+
continue;
|
|
197
|
+
}
|
|
198
|
+
if (shouldSkipNext === true) {
|
|
199
|
+
shouldSkipNext = false;
|
|
200
|
+
continue;
|
|
201
|
+
}
|
|
190
202
|
const {
|
|
191
203
|
important,
|
|
192
204
|
property,
|