Re: [csswg-drafts] [css-values] Automatic parsing of value definitions (#2921)

  > This is the function definition pattern I think we should be aiming for:

It would fix all of the issues I have with extracting function value definitions (that are not inlined in a context value definition) from the data exposed by `w3c/webref`. I am just a little worried that this makes the spec authors' job more difficult.

Actually, I do not really understand why the `function` data type is required (if its grammar cannot be assumed to be context-free), instead of only using `value` as a general term for a symbol included in a value definition and further defined in relation to this context.

For example, when following the reasoning justifying the need of `function`, if I wanted to further define `(calc-sum)` in `<calc-value> = <number> | ... | (<calc-sum>)`, I would need to define it with `simple-block` as its `dfn-type`, but there is no such type in Bikeshed.

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


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

Received on Thursday, 14 December 2023 08:32:52 UTC