[css-houdini-drafts] [css-typed-om] CSSKeywordValue should serialize using "serialize an identifier" (#1147)

AtkinsSJ has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== [css-typed-om] CSSKeywordValue should serialize using "serialize an identifier" ==
Originally posted here: https://github.com/w3c/csswg-drafts/issues/12545

The spec for this simply [says:](https://drafts.css-houdini.org/css-typed-om-1/#serialize-a-csskeywordvalue)

> Return this’s [value](https://drafts.css-houdini.org/css-typed-om-1/#dom-csskeywordvalue-value) internal slot.

However, the internal slot may have spaces or other characters that need escaping. The browsers that implement typed-om all escape these, equivalent to using the [serialize an identifier](https://drafts.csswg.org/cssom-1/#serialize-an-identifier) algorithm, as demonstrated by the [WPT results](https://wpt.fyi/results/css/css-typed-om/stylevalue-serialization/cssKeywordValue.tentative.html) for the test that checks CSSKeywordValue serialization.

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/1147 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 14 August 2025 13:45:03 UTC