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
{{ message }}
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.
To sync three events with this style, we'd have to toggle their events by not raycasting hidden elements. Not sure what else other than only traversing visible elements internally.
To sync three events with this style, we'd have to toggle their events by not raycasting hidden elements.
Yup, and probably a lot of other things! The first challenge is figuring out a good way to actually interact with the styles set on an element. I haven't tested this yet, but I'm assuming that the modification of a property of the style property -- like element.style.display = "none" -- will never trigger our attributeChangedCallback.
The most naive implementation I could think of would involve checking the property on every frame, but I'm not sure about the performance ramifications.
Maybe it might be possible to wrap an element's style property in a Proxy instance after instantiation?
Either way, I intend to do some experimenting with these ideas some time soon, once I find the time.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
...because some frameworks make use of this (eg Alpine.js), and it would be cool to have our elements react to this category of style changes.
The text was updated successfully, but these errors were encountered: