Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions cssom-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,19 @@ To <dfn export>remove a CSS style sheet</dfn>, run these steps:
<!-- 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? -->
</ol>

To <dfn export>disable a CSS style sheet</dfn>, run these steps:

<ol>
<li>Remove the <a>CSS style sheet</a> from the list of <a>document or shadow root CSS style sheets</a>.

<li>Set the <a>CSS style sheet</a>'s <a for=CSSStyleSheet>parent CSS style sheet</a>,
<a for=CSSStyleSheet>owner node</a> and <a for=CSSStyleSheet>owner CSS rule</a> to null.

<!-- "associated CSS style sheet" is defined in terms of owner node, so we don't need to set it to null explicitly -->

<li>Set the <a>disabled flag</a>.
</ol>

A <dfn export>persistent CSS style sheet</dfn> is a
<a>CSS style sheet</a> from the <a>document or shadow root CSS style sheets</a>
whose <a>title</a> is the empty string and whose
Expand Down