Re: [csswg-drafts] [css-syntax-3] Clarifications on ignored declarations (#7428)

[CSS Syntax](https://drafts.csswg.org/css-syntax/#declaration-rule-list):

> For rules that use `<style-block>` or `<declaration-list>`, the spec for the rule must define which properties, descriptors, and/or at-rules are valid inside the rule; this may be as simple as saying "The `@foo` rule accepts the properties/descriptors defined in this specification/section.", and extension specs may simply say "The `@foo` rule additionally accepts the following properties/descriptors.". Any declarations or at-rules found inside the block that are not defined as valid must be removed from the rule’s value.

This means that *accepts*, *contains*, *can only contain*, all mean the same thing: declarations for other properties/descriptors are removed (and therefore can not be exposed by CSSOM).

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


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

Received on Saturday, 2 July 2022 03:19:31 UTC