this post was submitted on 20 Nov 2025
3 points (100.0% liked)

CSS

742 readers
2 users here now

founded 2 years ago
MODERATORS
top 1 comments
sorted by: hot top controversial new old
[–] lambalicious@lemmy.sdf.org 1 points 3 months ago

I don't know how exactly people define what is or is not a thing for the purposes of "pseudo-elements applying to things" , but my first expectation was that, by design, :closed can not be the same as :not(open). The former would in theory apply to things, and only to things, that can have a state of closed-ness and are in that state of closed-ness, whereas the latter should be able to apply to things that may not have the possibility of being open or closed.

But if that's not the case, then I don't really see a point for :closed existing, yeah.