Re: [csswg-drafts] [css-contain-3] Reference named containers for cq units (#7858)

@LeaVerou Note that a `<dimension-token>` is a single token, not `<number-token> <ident-token>`.
For example, `width: 100px` is a `<dimension-token>` and works, `width: 10/**/px` is a `<number-token> <ident-token>` and doesn't work.

So Romain is right that with the current syntax, `10cqi(card)` would be a `<dimension-token>` followed by a `()-block`. I guess we could leave this as 2 tokens, which would have some oddities like accepting `10cqi/**/(card)` as valid even if that wouldn't be valid with a function token, or change the syntax to treat it as a single token.

Or just go with the simpler `calc(10 * cqi(card))`.

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


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

Received on Thursday, 5 January 2023 19:23:00 UTC