[csswg-drafts] [css-syntax-3] Allow a descriptor matching a property to cascade and get a priority (#7838)

cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-syntax-3] Allow a descriptor matching a property to cascade and get a priority ==
> Within a `<style-block>` or `<declaration-list>`, `!important` is automatically invalid on any descriptors. If the rule accepts properties, the spec for the rule must define whether the properties interact with the cascade, and with what specificity. If they don’t interact with the cascade, properties containing `!important` are automatically invalid; otherwise using `!important` is valid and causes the declaration to be important for the purposes of the cascade.

According to https://github.com/w3c/csswg-drafts/issues/5969#issuecomment-776373782, all declarations in `@page` are for descriptors. Therefore I assume the above (from [CSS Syntax](https://w3c.github.io/csswg-drafts/css-syntax-3/)) also applies to *descriptors matching a property*. If so, the first sentence seems confusing to me.

> Declarations in page and margin contexts cascade just like declarations in style rule for elements.

https://w3c.github.io/csswg-drafts/css-page-3/#cascading-and-page-context



Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7838 using your GitHub account


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

Received on Thursday, 6 October 2022 09:22:44 UTC