Skip to content

Commit 98a06e3

Browse files
committed
Clean up
1 parent 5d1a2b0 commit 98a06e3

File tree

2 files changed

+561
-569
lines changed

2 files changed

+561
-569
lines changed

lib/CSSStyleDeclaration.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const generatedProperties = require("./generated/properties");
1010
const {
1111
borderProperties,
1212
getPositionValue,
13-
normalizeProperties,
13+
normalizeBorderProperties,
1414
prepareBorderProperties,
1515
prepareProperties,
1616
shorthandProperties
@@ -150,7 +150,7 @@ class CSSStyleDeclaration {
150150
}
151151
properties.set(property, { property, value, priority });
152152
}
153-
const normalizedProperties = normalizeProperties(properties);
153+
const normalizedProperties = normalizeBorderProperties(properties);
154154
const parts = [];
155155
for (const { property, value, priority } of normalizedProperties.values()) {
156156
if (priority) {
@@ -362,7 +362,7 @@ class CSSStyleDeclaration {
362362
}
363363

364364
/**
365-
* NOTE: Experimental
365+
* NOTE: Non-standard, experimental
366366
*/
367367
static getPropertyList() {
368368
return Object.fromEntries(implementedProperties);
@@ -519,7 +519,8 @@ Object.defineProperties(CSSStyleDeclaration.prototype, {
519519
}
520520
}
521521
}
522-
}
522+
},
523+
enumerable: false
523524
},
524525

525526
_positionShorthandSetter: {
@@ -568,7 +569,8 @@ Object.defineProperties(CSSStyleDeclaration.prototype, {
568569
const shorthandValue = getPositionValue(shorthandValues, position);
569570
this._setProperty(prop, shorthandValue, priority);
570571
}
571-
}
572+
},
573+
enumerable: false
572574
},
573575

574576
_positionLonghandSetter: {
@@ -613,7 +615,8 @@ Object.defineProperties(CSSStyleDeclaration.prototype, {
613615
this._setProperty(shorthandProperty, replacedValue);
614616
}
615617
}
616-
}
618+
},
619+
enumerable: false
617620
}
618621
});
619622

0 commit comments

Comments
 (0)