Skip to content

Commit

Permalink
Clarify that modal dialogs escape inertness of ancestors.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed May 9, 2022
1 parent 328a813 commit ca89c75
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -75967,9 +75967,12 @@ END:VCARD</pre>
<var>document</var>'s <span>top layer</span>. While <var>document</var> is so blocked, every node
that is <span>connected</span> to <var>document</var>, with the exception of the
<var>subject</var> element and its <span>flat tree</span> descendants, must become
<span>inert</span>. (The elements excepted by this paragraph can additionally become
<span>inert</span> through other means; being part of a modal dialog does not "protect" a node
from being <span>inert</span>.)</p>
<span>inert</span>.

<p><var>subject</var> can additionally become <span>inert</span> via the
<code data-x="attr-inert">inert</code> attribute, but only if specified on <var>subject</var>
itself (i.e., <var>subject</var> escapes inertness of ancestors); <var>subject</var>'s
<span>flat tree</span> descendants can become <span>inert</span> in a similar fashion.

<p class="note">The <code>dialog</code> element's <code
data-x="dom-dialog-showModal">showModal()</code> method causes this mechanism to trigger, by
Expand Down

0 comments on commit ca89c75

Please sign in to comment.