Skip to content

Commit 2a417f0

Browse files
[cssom] Add a “disable a CSS style sheet” definition
1 parent bf6c957 commit 2a417f0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

cssom-1/Overview.bs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,21 @@ 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+
1212+
<!-- 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? -->
1213+
</ol>
1214+
12001215
A <dfn export>persistent CSS style sheet</dfn> is a
12011216
<a>CSS style sheet</a> from the <a>document or shadow root CSS style sheets</a>
12021217
whose <a>title</a> is the empty string and whose

0 commit comments

Comments
 (0)