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

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

== [cssom-1] [css-cascade] CSSImportRule.sheet not being null conflicts with @import supports() ==
https://drafts.csswg.org/css-cascade-5/#at-import:

> Additionally, if a [<supports-condition>](https://w3c.github.io/csswg-drafts/css-conditional-3/#typedef-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?

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


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

Received on Friday, 17 March 2023 17:41:30 UTC