- From: Guillaume via GitHub <noreply@w3.org>
- Date: Mon, 05 Jan 2026 04:05:31 +0000
- To: public-css-archive@w3.org
cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts: == [cssom-1] Unlink parent style sheet of `@import`ed style sheet when removing `@import` == A [test](https://github.com/web-platform-tests/wpt/blob/b07a5b0db2e907a9e6e8cc6c0a844ecbd548e185/css/cssom/cssimportrule-parent.html#L18) on WPT expects `CSSImportRule.styleSheet.parentStyleSheet` to be unset when removing `CSSImportRule`, which does not seem specified. Since all browsers pass this test and this requirement follows that of step 6 of [remove a CSS rule](https://drafts.csswg.org/cssom-1/#remove-a-css-rule), adding it might not need a resolution: ```diff 6. Set old rule’s parent CSS rule and parent CSS style sheet to null. + 7. If old rule is an @import, set the parent CSS style sheet of its associated style sheet to null. ``` However, I do not understand why the [owner rule](https://drafts.csswg.org/cssom-1/#dom-cssstylesheet-ownerrule) of the `@import`ed style sheet is not also set to null. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13291 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 5 January 2026 04:05:33 UTC