News for hackers. Stuff that matters.
Re:Styling form states without JavaScript by coder543 on Thursday November 17, 2022 @09:40PM (#33649225)
> I would recommend using :user-invalid and polyfilling

Is there a polyfill you can recommend?

Re:Styling form states without JavaScript by chrismorgan on Thursday November 17, 2022 @10:41PM (#33649865)
No idea, sorry. I haven’t had cause to want this sort of thing in the last couple of years (or I’d have done it myself if no one else has). It’s not unlikely, in fact, that no one has actually written a suitable polyfill yet, of similar nature to :focus-visible polyfills. But if one wants to implement such a thing, :focus-visible polyfills are a decent starting place to look at and think about.