David Myers

@david.fyi

Staff Software Engineer | Open Source Maintainer | Dog Dad

Anyone out there writing custom form validations with modern browser APIs? Specifically looking into things like using ValidityState, the <output> element, setCustomValidity, :user-valid, etc.

I finally have a good reason to learn Rust (building a cross-platform app with Tauri), and I am loving it so far. The combination of expressions, result objects, and pattern-matching is such a breath of fresh air.

You can now see which value is the active value in min(), max() and clamp() - in Canary DevTools today - coming to Chrome stable soon!

font-size: min(2em, 2rem);
padding: clamp(10px, 5vw, 30px);
margin: max(2lh, 2em);

2em is crossed out
10px, 5vw is crossed out
2em is crossed out