Vlad
dalwlad.bsky.social
Vlad
@dalwlad.bsky.social
Reposted by Vlad
@una.im made a great video about the anchored style query: www.youtube.com/watch?v=u5-V...
First look: Anchored style queries (early stage prototype in Chrome 139+)
YouTube video by Una Kravets
www.youtube.com
August 11, 2025 at 5:48 AM
Reposted by Vlad
This is also pretty rad, because in addition to being local state, it also registers your state as enums that you can use to STYLE your components with the ":state" CSS selector.

developer.mozilla.org/en-US/docs/...
CustomStateSet - Web APIs | MDN
The CustomStateSet interface of the Document Object Model stores a list of states for an autonomous custom element, and allows states to be added and removed from the set.
developer.mozilla.org
June 16, 2025 at 8:13 PM