Skip to content

[cssom-1] [css-cascade] CSSImportRule.sheet not being null conflicts with @import supports() #8608

@emilio

Description

@emilio

https://drafts.csswg.org/css-cascade-5/#at-import:

Additionally, if a <supports-condition> blocks the application of the imported style sheet, the UA must not fetch the style sheet (unless it is loaded through some other link) and must return null for the import rule’s CSSImportRule.styleSheet value (even if it is loaded through some other link).

But https://drafts.csswg.org/cssom-1/#dom-cssimportrule-stylesheet is not nullable.

I think the fix is obvious (just make it nullable). Not sure if that needs a resolution tho?

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