Re: [csswg-drafts] [css-fonts] @font-face src: url() format() keywords vs. strings ambiguous in spec (#6328)

I think the summary is correct, but how do we bring the following in agreement?

@drott wrote:
> I suggest ... to specify that for the parsed CSSOM cssText value of the parsed at-rule keyword
representations should be returned.

@fantasai wrote:
> If strings are the most backwards-compatible syntax, then we must serialize as strings, not as keywords.

Can we have a mixed serialization type? Such as every format that has a keyword equivalent is serialized as a keyword, and the rest as strings? I think it's beneficial to allow a round-trip of keywords to keywords - and I would hope at some point to phase out the strings here. I think serialization to strings is in the way of that.

But if we can't have a mixed serialization as keyword or string, I am okay with always serializing to strings, even if that downgrades a more specific type of keyword, to a more generic type, string.




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


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

Received on Thursday, 11 April 2024 13:27:43 UTC