Re: [csswg-drafts] [css-values-5] What is the MVP for inline conditionals on custom properties? (#10064)

> so far it's been decided not to provide conditionals for declaration blocks

What? Plenty of conditional blocks in these specs:
https://drafts.csswg.org/css-conditional-3/
https://drafts.csswg.org/css-conditional-4/
https://drafts.csswg.org/css-conditional-5/

> would you be able to make that use of if make sense or would you be forced to pick a different keyword?

There is no problem if a functional value and an at rule share the same name.
https://drafts.csswg.org/css-conditional-5/#when-rule uses `@when` because of a clash with SASS, not because of a conflict with inline `if()`. Also see #6684, `@when` might still be renamed  to `@if`.

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


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

Received on Monday, 24 February 2025 22:06:44 UTC