Re: [csswg-drafts] [css-om] Serialization of font-family names: quoted string vs keyword (#5846)

Presenting the results of serialization by setting `document.body.textContent` as above is a bit misleading, as it is displayed with white-space collapsing. So it looks like the 5th family name is `A B`, whereas in fact it is `A  B` (i.e. the double space is preserved). Adding `white-space: pre` to the `body` style makes this visible.

This highlights an additional case that should be mentioned in the Option 2 rules for when the value must be quoted: if the value contains leading, trailing, or multiple consecutive spaces.

-- 
GitHub Notification of comment by jfkthame
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5846#issuecomment-3887554956 using your GitHub account


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

Received on Wednesday, 11 February 2026 22:22:53 UTC