cssstyle 5.3.1 → 5.3.3
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.
- package/lib/CSSStyleDeclaration.js +12 -0
- package/lib/generated/implementedProperties.js +1 -1
- package/lib/generated/properties.js +6 -6
- package/lib/properties/border.js +1 -1
- package/lib/properties/borderBottom.js +1 -1
- package/lib/properties/borderLeft.js +1 -1
- package/lib/properties/borderRight.js +1 -1
- package/lib/properties/borderTop.js +1 -1
- package/package.json +1 -1
|
@@ -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,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// autogenerated - 2025-
|
|
2
|
+
// autogenerated - 2025-11-08
|
|
3
3
|
// https://www.w3.org/Style/CSS/all-properties.en.html
|
|
4
4
|
|
|
5
5
|
var external_dependency_parsers_0 = require("../parsers.js");
|
|
@@ -2432,7 +2432,7 @@ borderTop_export_parse = function parse(v, opt = {}) {
|
|
|
2432
2432
|
if (parsedValues.has("border-top-color")) {
|
|
2433
2433
|
return;
|
|
2434
2434
|
}
|
|
2435
|
-
const parsedValue = external_dependency_parsers_0.parseColor(
|
|
2435
|
+
const parsedValue = external_dependency_parsers_0.parseColor(value);
|
|
2436
2436
|
if (!parsedValue) {
|
|
2437
2437
|
return;
|
|
2438
2438
|
}
|
|
@@ -2593,7 +2593,7 @@ borderRight_export_parse = function parse(v, opt = {}) {
|
|
|
2593
2593
|
if (parsedValues.has("border-right-color")) {
|
|
2594
2594
|
return;
|
|
2595
2595
|
}
|
|
2596
|
-
const parsedValue = external_dependency_parsers_0.parseColor(
|
|
2596
|
+
const parsedValue = external_dependency_parsers_0.parseColor(value);
|
|
2597
2597
|
if (!parsedValue) {
|
|
2598
2598
|
return;
|
|
2599
2599
|
}
|
|
@@ -2754,7 +2754,7 @@ borderBottom_export_parse = function parse(v, opt = {}) {
|
|
|
2754
2754
|
if (parsedValues.has("border-bottom-color")) {
|
|
2755
2755
|
return;
|
|
2756
2756
|
}
|
|
2757
|
-
const parsedValue = external_dependency_parsers_0.parseColor(
|
|
2757
|
+
const parsedValue = external_dependency_parsers_0.parseColor(value);
|
|
2758
2758
|
if (!parsedValue) {
|
|
2759
2759
|
return;
|
|
2760
2760
|
}
|
|
@@ -2915,7 +2915,7 @@ borderLeft_export_parse = function parse(v, opt = {}) {
|
|
|
2915
2915
|
if (parsedValues.has("border-left-color")) {
|
|
2916
2916
|
return;
|
|
2917
2917
|
}
|
|
2918
|
-
const parsedValue = external_dependency_parsers_0.parseColor(
|
|
2918
|
+
const parsedValue = external_dependency_parsers_0.parseColor(value);
|
|
2919
2919
|
if (!parsedValue) {
|
|
2920
2920
|
return;
|
|
2921
2921
|
}
|
|
@@ -3099,7 +3099,7 @@ border_export_parse = function parse(v, opt = {}) {
|
|
|
3099
3099
|
if (parsedValues.has("border-color")) {
|
|
3100
3100
|
return;
|
|
3101
3101
|
}
|
|
3102
|
-
const parsedValue = external_dependency_parsers_0.parseColor(
|
|
3102
|
+
const parsedValue = external_dependency_parsers_0.parseColor(value);
|
|
3103
3103
|
if (!parsedValue) {
|
|
3104
3104
|
return;
|
|
3105
3105
|
}
|
package/lib/properties/border.js
CHANGED
|
@@ -84,7 +84,7 @@ module.exports.parse = function parse(v, opt = {}) {
|
|
|
84
84
|
if (parsedValues.has("border-color")) {
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
|
-
const parsedValue = parsers.parseColor(
|
|
87
|
+
const parsedValue = parsers.parseColor(value);
|
|
88
88
|
if (!parsedValue) {
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
@@ -74,7 +74,7 @@ module.exports.parse = function parse(v, opt = {}) {
|
|
|
74
74
|
if (parsedValues.has("border-bottom-color")) {
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
|
-
const parsedValue = parsers.parseColor(
|
|
77
|
+
const parsedValue = parsers.parseColor(value);
|
|
78
78
|
if (!parsedValue) {
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
@@ -74,7 +74,7 @@ module.exports.parse = function parse(v, opt = {}) {
|
|
|
74
74
|
if (parsedValues.has("border-left-color")) {
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
|
-
const parsedValue = parsers.parseColor(
|
|
77
|
+
const parsedValue = parsers.parseColor(value);
|
|
78
78
|
if (!parsedValue) {
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
@@ -74,7 +74,7 @@ module.exports.parse = function parse(v, opt = {}) {
|
|
|
74
74
|
if (parsedValues.has("border-right-color")) {
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
|
-
const parsedValue = parsers.parseColor(
|
|
77
|
+
const parsedValue = parsers.parseColor(value);
|
|
78
78
|
if (!parsedValue) {
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
@@ -74,7 +74,7 @@ module.exports.parse = function parse(v, opt = {}) {
|
|
|
74
74
|
if (parsedValues.has("border-top-color")) {
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
|
-
const parsedValue = parsers.parseColor(
|
|
77
|
+
const parsedValue = parsers.parseColor(value);
|
|
78
78
|
if (!parsedValue) {
|
|
79
79
|
return;
|
|
80
80
|
}
|