Re: [whatwg/dom] matchMedia-like API for element matches (Issue #1225)

This would be super handy. Especially for subscribing to the open/close state of popovers. 

Unlike with dialogs where you can just subscribe to the `open` property via a [Mutation Observer](https://www.google.com/search?q=mutation+observer&sourceid=chrome&ie=UTF-8)), with popovers you are limited to checking for the `:popover-open` pseudo class.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1225#issuecomment-2156782220
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1225/2156782220@github.com>

Received on Sunday, 9 June 2024 20:44:21 UTC