@chriskirknielsen@front-end.social
Post #1522497
2026-02-20 17:55 UTC
@AmeliaBR Yeah my mind first went to `label /for/ input:user-invalid` to make the label text bold/red/etc, but that's the other way around. What you linked to would allow that, I like it!
I wonder if we could do `label:has(+ /for/ input:user-invalid)` as a workaround.
Replies (1)
-
@AmeliaBR@front-end.social 2026-02-20 19:59
@chriskirknielsen Huh. Maybe? Depends how it gets spec'd / implemented. If the /for/ can work in :has() the same way as a + or ~ could to describe the relationship. But I'd still want the simpler-to-read version, especially if it can be defined as equivalent to something that is possible but confusing to write by combining two other features.