Skip to content

Exposing predefined instances of an object as static properties on the class #817

Answered by domenic
LeaVerou asked this question in Q&A
Discussion options

You must be logged in to vote

Based on https://source.chromium.org/search?q=file:%5C.idl%20%22static%20readonly%20attribute%22&ss=chromium I'm not aware of any precedent for this on the web platform, or at least the parts of the web platform currently implemented in Chromium.

I don't envy whoever has to figure out how https://w3ctag.github.io/design-principles/#casing-rules applies to these, especially things like xyz-d65 or a98rgb :).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@LeaVerou
Comment options

LeaVerou Feb 16, 2023
Maintainer Author

Answer selected by LeaVerou
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
3 participants