You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interfaces are meant to represent instances of an object (in the OOP sense, bundling together data and operations on that data). They are not used for feature detection.
I suggest instead adding something like HTMLCanvasElement.supportsColorSpace("display-p3") or similar.
The text was updated successfully, but these errors were encountered:
Ok, well, that's unfortunate: I think the ergonomics are better this way, as it matches how function feature detection is done, extending the approach there to enums.
Interfaces are meant to represent instances of an object (in the OOP sense, bundling together data and operations on that data). They are not used for feature detection.
I suggest instead adding something like
HTMLCanvasElement.supportsColorSpace("display-p3")
or similar.The text was updated successfully, but these errors were encountered: