mdn / content

The content behind MDN Web Docs
https://developer.mozilla.org
Other
9.01k stars 22.44k forks source link

Reference for CSS value serialization, especially as it relates to colors #32734

Open estelle opened 4 months ago

estelle commented 4 months ago

Create a glossary page for "serialized" to explain what serializing means, especially as it relates to colors.

Link to this new page from:

_Originally posted by @estelle in https://github.com/mdn/content/pull/32004#discussion_r1529472457_

bsmth commented 3 months ago

Thanks Estelle. Removing needs triage as I think next steps are a PR to add this 👍🏻

Josh-Cena commented 2 weeks ago

FYI, we already have a glossary entry here: https://developer.mozilla.org/en-US/docs/Glossary/Serialization It says if you want to get the serialized value of a property, use the CSSStyleDeclaration.getPropertyValue() function. "Serializing CSS values" itself should be a CSS topic, not a glossary topic. The relevant spec is https://drafts.csswg.org/cssom/#serialize-a-css-value