- From: 0xdevwrite via GitHub <sysbot+gh@w3.org>
- Date: Mon, 30 Oct 2023 15:00:29 +0000
- To: public-css-archive@w3.org
0xdevwrite has just created a new issue for https://github.com/w3c/csswg-drafts: == [cssom] Disabling imported styleSheet == Is it expected behavior for a styleSheet that has been imported with `@import` and subsequently disabled to act as though it is still enabled? Given the following document and external CSS file, I would expect the imported style to be disabled and the body text to not be red, however that does not seem to be the case. ```css /* red.css */ body { color: red; } ``` ```html <!DOCTYPE html> <html> <head> <style>@import 'red.css'</style> <script> const importedStyleSheet = document.styleSheets[0].cssRules[0].styleSheet; importedStyleSheet.disabled = true; console.log(importedStyleSheet.disabled) // logs true, but body remains red </script> </head> <body>Should not be red</body> </html ``` Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9538 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 30 October 2023 15:00:31 UTC