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

I think there are two approaches we could take.

Option 1: Track what the author did, as Firefox is doing.

Option 2: Follow some basic rules, like:
- Quote if it matches an existing keyword (already required per spec).
- Quote if it contains non-alphanumeric ASCII.
- Quote if it contains a word that begins with a number.
- Otherwise serialize as space-separated idents.

This also gives us Option 3: Do 1 for specified value and 2 for computed value.

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


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

Received on Friday, 17 October 2025 17:08:55 UTC