field-sizing: content - Auto-Growing Textareas With Zero JavaScript
Every chat box and comment field ships JS that measures scrollHeight to grow the textarea. One CSS property now does it natively - with a progressive-enhancement story for the rest.
Step-by-step programming tutorials on PHP, JavaScript, Laravel, WordPress and more.
Every chat box and comment field ships JS that measures scrollHeight to grow the textarea. One CSS property now does it natively - with a progressive-enhancement story for the rest.
The material-style label that sits in the field and floats up when you type is a pure CSS pattern - one pseudo-class, one sibling selector, one transition.
required, pattern and type attributes feed a full JavaScript API: custom error messages, on-your-terms timing, and async checks - without a validation library.
Custom checkbox hacks - hidden inputs, pseudo-element ticks, sprite images - solved a problem that accent-color now handles in a single declaration.
new FormData(form) reads every field in one call, posts natively with fetch, and Object.fromEntries turns it into JSON. You may never write form.elements loops again.