Re: [csswg-drafts] [css-contain] Is `<container-name>` conflicting with `<'container-name'>`? (#8179)

I have a small experience in these languages but I think it could have been usefull to expand `<foo>` with the value definition of the property named `foo`. A consequence is that there could not have been non-terminals bearing the same name as a property and expanding to a different value definition.

As a practical example, one may parse the input of [`grid-template-areas`](https://drafts.csswg.org/css-grid-2/#propdef-grid-template-areas) against `<grid-template-areas>`, and register a function associated to this non-terminal name to further validate the result from parsing against its basic syntax.

But as commented above, parsing `color`, which is defined with `<color>`, would probably be broken.

This was only my humble opinion and there are workarounds for the above example, of course.

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


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

Received on Tuesday, 6 December 2022 08:51:34 UTC