Description
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 #5969 (comment), all declarations in @page
are for descriptors. Therefore I assume the above (from CSS Syntax) 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