Loading video...
Video Failed to Load
CSS Tip! ✨ You can lean into form control state and layered backgrounds to create input status strokes 😎 input:valid { --valid: 1; } input { background: var(--bg) padding-box, ..., var(--valid-bg) calc((1 - var(--valid)) * 100cqi) 0 / 100% 100% border-box; } The trick is to layer up backgrounds... show more
239,569 views • 2 years ago •via X (Twitter)
9 Comments

jhey ▲🐻🎈2 years ago
Here's that @CodePen link! 🚀 Should rock in all browsers 🤙

jhey ▲🐻🎈2 years ago
Haha - Thanks Masda 🤙

Pratyay Banerjee (নীল) 2 years ago
Ummmm

jhey ▲🐻🎈2 years ago
Interestingly, that's valid. There are some funky email patterns that are valid for email. You can take it further with the "pattern" attribute if needed. Quite cool if you wanted to only accept email from certain domains, etc.

Marcel2 years ago
How can you make tweets so long, for me if its too long it just doesnt work.

TypeScriptGuru2 years ago
🔥🔥

Sebastian2 years ago
@artur_bien

Armin~the Vlone{tech} thug2 years ago
Wow

Alex Leybourne2 years ago
Just when I think i’m pretty good and knowledgeable at css You somehow tech me something new almost every day 🤩
