Re: [csswg-drafts] [cssom] Add a “disable a CSS style sheet” definition (#9414)

How is it different from [removing](https://drafts.csswg.org/cssom/#remove-a-css-style-sheet ) (and then creating a new sheet when enabling again)?

In WebKit it seems the re-enabled sheet is the same object, but in Chrome and Firefox it's a new object. Demo for http://software.hixie.ch/utilities/js/live-dom-viewer/ : 
```html
<!DOCTYPE html>
<link rel=stylesheet href="data:text/css,html{background:yellow} " id=x> 
<script>
onload = () => {
var sheet = x.sheet;
w(document.styleSheets.length)
x.disabled = true;
w(sheet.ownerNode)
w(document.styleSheets.length)
x.disabled = false;
w(sheet === x.sheet);
}
</script>
```

-- 
GitHub Notification of comment by zcorpan
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/pull/9414#issuecomment-1739634991 using your GitHub account


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

Received on Thursday, 28 September 2023 16:16:16 UTC