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
This is similar to #897, but specifically what I'm after is a subset of the proposed api from that ticket. With Chrome, Firefox, and Safari all implementing the <dialog> element, and with Chrome exposing the "top layer" in the DevTools, I would love a JavaScript API to get access to the element that is the "top layer." As far as I can tell, there is no such API exposed (on either the <dialog> element itself or the document).
Reasoning
As a maintainer of an accessibility library (axe-core), I need a way to determine what the "top layer" element is in order to determine how things on the page should be treated for accessibility. Specifically, I need to know what elements on the page should be treated as inert and which shouldn't. Since all elements outside of the "top layer" element are intrinsically treated as inert by the browser without using the inert attribute or property, I'm unable to determine programmatically when an element is inert.
Notes
This ticket is just asking for a way to get the element that is "top layer." It is not asking about more API methods than that (such as exposing the entire stack, or methods to manipulate the stack).
The text was updated successfully, but these errors were encountered:
This is similar to #897, but specifically what I'm after is a subset of the proposed api from that ticket. With Chrome, Firefox, and Safari all implementing the
<dialog>
element, and with Chrome exposing the "top layer" in the DevTools, I would love a JavaScript API to get access to the element that is the "top layer." As far as I can tell, there is no such API exposed (on either the<dialog>
element itself or thedocument
).Reasoning
As a maintainer of an accessibility library (axe-core), I need a way to determine what the "top layer" element is in order to determine how things on the page should be treated for accessibility. Specifically, I need to know what elements on the page should be treated as inert and which shouldn't. Since all elements outside of the "top layer" element are intrinsically treated as
inert
by the browser without using theinert
attribute or property, I'm unable to determine programmatically when an element is inert.Notes
The text was updated successfully, but these errors were encountered: