Skip to content

[css3-conditional] Should CSS.supports() accept properties which are only valid in certain rules? #5929

Closed
@AlaskanEmily

Description

@AlaskanEmily

The exact case I'm looking at is page-size ( https://drafts.csswg.org/css-page-3/#page-size-prop ), which I'm currently implementing in Firefox, and which is only specified to be valid in @page rules.

It appears that size is also valid in style declarations in WebKit in Chrome with the same syntax, which is hit in some web-platform tests, for instance https://github.com/web-platform-tests/wpt/blob/master/css/css-conditional/js/CSS-supports-CSSStyleDeclaration.html

If a property like size is supported only in a specific at-rule, should it accepted by CSS.supports?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions