You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<img src="/images/inert-example-loading-section.png" width="947" height="243" alt="Screenshot of Population by City content with an overlaid loading message which visually obscures the form controls and data table which have not fully rendered, and thus are in the inert state.">
76170
76214
76215
+
<p>The "loading" overlay obscures the inert content, making it visually apparent that the inert
76216
+
content is not presently accessible. Notice that the heading and "loading" text are not
76217
+
descendants of the element with the <code>inert</code> attribute. This will ensure this text is
76218
+
accessible to all users, while the inert content cannot be interacted with by anyone.</p>
76219
+
</div>
76220
+
76221
+
<div class="note">
76222
+
<p>By default, there is no persistent visual indication of an element or its subtree being
76223
+
inert. Appropriate visual styles for such content is often context-dependent. For instance, an
76224
+
inert off-screen navigation panel would not require a default style, as its off-screen position
76225
+
visually obscures the content. Similarly, a modal <code>dialog</code> element's backdrop will
76226
+
serve as the means to visually obscure the inert content of the web page, rather than styling
76227
+
the inert content specifically.</p>
76171
76228
76229
+
<p>However, for many other situations authors are strongly encouraged to clearly mark what parts
76230
+
of their document are active and which are inert, to avoid user confusion. In particular, it is
76231
+
worth remembering that not all users can see all parts of a page at once; for example, users of
76232
+
screen readers, users on small devices or with magnifiers, and even users using particularly
76233
+
small windows might not be able to see the active part of a page and might get frustrated if
76234
+
inert sections are not obviously inert.</p>
76235
+
</div>
76236
+
76237
+
<p>The <dfn data-x="dom-inert"><code>inert</code></dfn> IDL attribute must <span>reflect</span>
0 commit comments