Re: [csswg-drafts] Proposal: Custom CSS Functions & Mixins (#9350)

> From a language and grammar perspective, it's terribly inconsistent.

@matthew-dean @mirisuzanne I second that. Introducing a new sub-grammar for this use-case seems inconsistent indeed. 

If we're talking inconsistencies in lists, the following solution comes to mind:

`output: --custom-font-fn(Arial, sans-serif);`
`output: --custom-font-fn("Some Font with Spaces", sans-serif);`
`output: --custom-font-fn("Some Font, with Spaces, and comma", sans-serif);`
`output: --custom-font-fn(var(--some-font-defined-by-some-var), sans-serif);`
`output: --custom-font-fn(--another-custom-fn(var(--some-font-defined-by-some-var)), sans-serif);`

I think this is the straight-forward way.

Did I overlook something? It seems quite consistent and in-line with the existing syntax?

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


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

Received on Thursday, 12 December 2024 22:26:37 UTC