W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2021

Re: [csswg-drafts] [css-fonts-4][css-nesting] Nesting of @supports inside @font-face (#6520)

From: Lea Verou via GitHub <sysbot+gh@w3.org>
Date: Tue, 24 Aug 2021 14:41:37 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-904703888-1629816096-sysbot+gh@w3.org>
> Oh wait
> 
> > The declaration being tested must always occur within parentheses, when it is the only thing in the expression. [source](https://drafts.csswg.org/css-conditional-3/#at-supports)
> 
> So that is like
> 
> ```css
> @supports  (font-technology(color(COLRv0))) {
>    and so on
> ```

This applies to declaration tests, not `selector()` or `font-technology()` queries.

Nitpick, I don’t think we need nested function calls, not to mention `color()` might look confusing because of the other `color()` function. We could just prefix keywords with `color-` and `feature-`, which avoids the multiple nested parens.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 24 August 2021 14:41:39 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:48 UTC