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
As of #90, the polyfill supports anchoring of top layer elements but we want to also keep track of the order of top layer elements to ensure a top layer target element cannot anchor to a succeeding top layer anchor, like this WPT shows.
Some additional context and background:
While some browsers are beginning to roll out a way to inspect the top layer, as of now there is no programmatic way to access the order of the elements in the top layer so we need to track and maintain this within the polyfill. There is an open request for an API here.
To keep track of this order, we need to listen for events like showPopover, showDialog, close(), and clicks to dismiss popovers as well.
As the order of the top layer elements change, we will need to revalidate to prevent cases like WPT anchor-position-top-layer-006. This is related to the feature requested in applying the polyfill to dynamic elements #91 because dynamically adding and removing anchors and/or targets are not yet supported.
The text was updated successfully, but these errors were encountered:
As of #90, the polyfill supports anchoring of top layer elements but we want to also keep track of the order of top layer elements to ensure a top layer target element cannot anchor to a succeeding top layer anchor, like this WPT shows.
Some additional context and background:
showPopover
,showDialog
,close()
, and clicks to dismiss popovers as well.The text was updated successfully, but these errors were encountered: