- From: Luiz Gustavo via GitHub <noreply@w3.org>
- Date: Sun, 14 Sep 2025 06:34:25 +0000
- To: public-css-archive@w3.org
luizgfranca has just created a new issue for https://github.com/w3c/csswg-drafts: == [cssom] "Serialize a CSS declaration" does not serialize property names with special characters == On https://drafts.csswg.org/cssom/#serialize-a-css-declaration the property name string is appended directly onto the final string, but this behavior would break the redefinition of the same style with `e.style = e.style.cssText` when there are custom properties with special characters. This is demonstrated by the WPT test: https://wpt.fyi/results/css/cssom/variable-names.html, from which the current specified behavior seems to disagree. Should we maybe apply the algorithm from https://www.w3.org/TR/cssom-1/#serialize-an-identifier to the property name? Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12792 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 14 September 2025 06:34:26 UTC