[csswg-drafts] Pull Request: [css-mixins-1] Fix space placement in serialize a CSSFunctionRule

Calme1709 has just submitted a new pull request for https://github.com/w3c/csswg-drafts:

== [css-mixins-1] Fix space placement in serialize a CSSFunctionRule ==
By moving the space from step 5 to the start of step 6 we ensure that there is a space before the '{' regardless of whether we serialize the return type (i.e. "--foo() {..." rather than "--foo(){...")

By moving the space from after the '{' in step 6 to before the first serialized rule in step 7 we ensure that there is only one space (the one in step 8) between the '{' and '}' in the case that there are no rules.

Both of these changes are [expected in WPT](https://github.com/web-platform-tests/wpt/blob/019cc73c5ed906f7b72a93ab31af3d599df53fea/css/css-mixins/at-function-cssom.html#L300)

See https://github.com/w3c/csswg-drafts/pull/13605


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

Received on Thursday, 5 March 2026 11:44:25 UTC