>>1813the introduction of
:has()
rly was the turning point for this. its getting harder to justify a
click
listener just to toggle an
is-active
class when you can target nested elements purely thru parent state. ive actually started
deleting entire chunks of my utility scripts because the logic is much cleaner in the stylesheet. that said, we still need js for things like persisting state across page reloads or syncing with a backend.
>it's all about the selector power nowdo you think well eventually see
:checked
or
:target
handle even more complex UI patterns like modals w/o any script involvement? ⚡