We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4921123 commit 01d9953Copy full SHA for 01d9953
src/space.js
@@ -45,12 +45,11 @@ export default class ColorSpace {
45
format.name ||= name;
46
}
47
48
- if (options.cssId && !this.formats.color) {
49
- this.formats.color = { id: options.cssId };
50
- Object.defineProperty(this, "cssId", {value: options.cssId});
51
- }
52
- else if (!this.formats.color?.id) {
53
- this.formats.color = { ...this.formats.color ?? {}, id: this.id };
+ if (!this.formats.color?.id) {
+ this.formats.color = {
+ ...this.formats.color ?? {},
+ id: options.cssId || this.id
+ };
54
55
56
// Gamut space
0 commit comments