News for hackers. Stuff that matters.
Re:HTML and CSS techniques to reduce your JavaScript by chrismorgan on Friday June 04, 2021 @12:13AM (#27390471)
One popular case for :checked JavaScriptless visual state is popups of various kinds; these days, many of those can be done with <details>, which is normally semantically better out of the box and generally equally capable (even down to things like “click anywhere outside and it closes” via some full-viewport ::before, on the summary rather than label in this instance).

There are no comments on this comment yet.