w3c / csswg-drafts

CSS Working Group Editor Drafts
https://drafts.csswg.org/
Other
4.42k stars 648 forks source link

[cssom] Link specified values in CSSOM to its definition in CSS Cascade #7744

Open karlcow opened 1 year ago

karlcow commented 1 year ago

This is a followup to the discussion in #7728 Specifically this comment

Specified value is used in CSSOM, but it is not defined. The definition seems to exist in CSS Cascade at this URL https://w3c.github.io/csswg-drafts/css-cascade-5/#specified-value

cdoublev commented 1 year ago

I feel like serialize a CSS value should somehow introduce that it can process different types of value: specified/computed/resolved. This is required to serialize <color> and math functions. I may not have spent enough time to figure out by myself how they can be hinted this type but CSSStyleDeclaration.computed seems not enough. Maybe this could also be clarified.

Sorry, this looks a bit as an aside but it may be an opportunity to add a link specified value from CSSOM to its definition in CSS Cascade.