File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -1197,6 +1197,19 @@ To <dfn export>remove a CSS style sheet</dfn>, run these steps:
11971197 <!-- XXX does anything need to happen wrt alternate style sheets? what if the last style sheet with the preferred style sheet set name is removed? -->
11981198</ol>
11991199
1200+ To <dfn export>disable a CSS style sheet</dfn> , run these steps:
1201+
1202+ <ol>
1203+ <li> Remove the <a>CSS style sheet</a> from the list of <a>document or shadow root CSS style sheets</a> .
1204+
1205+ <li> Set the <a>CSS style sheet</a> 's <a for=CSSStyleSheet>parent CSS style sheet</a> ,
1206+ <a for=CSSStyleSheet>owner node</a> and <a for=CSSStyleSheet>owner CSS rule</a> to null.
1207+
1208+ <!-- "associated CSS style sheet" is defined in terms of owner node, so we don't need to set it to null explicitly -->
1209+
1210+ <li> Set the <a>disabled flag</a> .
1211+ </ol>
1212+
12001213A <dfn export>persistent CSS style sheet</dfn> is a
12011214<a>CSS style sheet</a> from the <a>document or shadow root CSS style sheets</a>
12021215whose <a>title</a> is the empty string and whose
You can’t perform that action at this time.
0 commit comments