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

> 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.

Well, I split up the CSS and IDL dfn types too finely when I started Bikeshed originally. Ideally they'd be organized by whether or not they could potentially have name clashes. (For example, in IDL the attribute and method types could/should be combined, but interface has to be separate from those.)

>  I would need to define it with simple-block as its dfn-type,

This definitely isn't correct, tho. The definition types aren't meant to map to any particular token type. `<calc-sum>` is a production (`dfn-type="type"`).

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2921#issuecomment-1856533775 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 20:27:04 UTC