Re: [csswg-drafts] [css-conditional-5] Add ability to test for at-rule preludes (#6966)

If the property in `@position-try` contains `!important`, what should the result return?

```js
CSS.supports(`at-rule(@position-try; inset: 20px)`) // => true
CSS.supports(`at-rule(@position-try; inset: 20px !important)`) // => true or false?
```

> It is invalid to use !important on the properties in the [<declaration-list>](https://drafts.csswg.org/css-syntax-3/#typedef-declaration-list). Doing so causes the property it is used on to become invalid, but does not invalidate the @property-try rule as a whole.
> https://drafts.csswg.org/css-anchor-position-1/#accepted-position-try-properties

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


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

Received on Tuesday, 5 November 2024 03:10:59 UTC