Skip to main content

References

Here are some CSS pseudo-classes for modern CSS usage for HTML forms.

Combining the :has pseudo-class with these pseudo-classes can be very powerful. Check out Josh Comeau's article, The Undeniable Utility Of CSS :has for a great deep dive into :has. Also, worth checking out is this blog post from Adam Argyle, CSS interpolate-size to the rescue, demoing a login with :has and :user-valid.