Skip to content

Commit cc39297

Browse files
Prevent bugs
Co-authored-by: Lea Verou <[email protected]>
1 parent 580bd65 commit cc39297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/color-element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const Self = class ColorElement extends NudeElement {
158158
return Self.Color.get(color);
159159
}
160160

161-
if (!CSS.supports("color", value) || !element) {
161+
if (!globalThis.CSS?.supports("color", value) || !element) {
162162
// Not supported/invalid value, or no element to resolve the color value from
163163
return null;
164164
}

0 commit comments

Comments
 (0)