From 4b7e443a6da704cd040707fce4b9f78b52979b85 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?=
Date: Wed, 18 May 2022 19:53:22 +0200
Subject: [PATCH] Clarify that modal dialogs escape inertness of ancestors
Closes #7808.
---
source | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/source b/source
index a63fc2b44ed..3dcaca6ce3a 100644
--- a/source
+++ b/source
@@ -75962,9 +75962,12 @@ END:VCARD
document's top layer. While document is so blocked, every node
that is connected to document, with the exception of the
subject element and its flat tree descendants, must become
- inert. (The elements excepted by this paragraph can additionally become
- inert through other means; being part of a modal dialog does not "protect" a node
- from being inert.)
+ inert.
+
+ subject can additionally become inert via the inert
attribute, but only if specified on subject itself
+ (i.e., subject escapes inertness of ancestors); subject's flat
+ tree descendants can become inert in a similar fashion.
The dialog
element's showModal()
method causes this mechanism to trigger, by
@@ -75974,8 +75977,9 @@ END:VCARD
The inert
attribute
The inert
attribute is a boolean attribute that
- indicates, by its presence, that the element and all its flat tree descendants are
- to be made inert by the user agent.
+ indicates, by its presence, that the element and all its flat tree descendants which
+ don't otherwise escape inertness (such as modal dialogs) are to be made inert by the
+ user agent.
By default, there is no persistent visual indication of a subtree being inert.
Authors are encouraged to clearly mark what parts of their document are active and which are