Modern CSS and HTML Have Quietly Replaced a Lot of Your JavaScript
Developer Ronalds VilciΕΕ‘ argues browsers have gotten capable enough that JavaScript shouldn't be the default reach for common UI patterns. Native <dialog> now handles modal overlays, focus trapping, and Escape-key behavior automatically, the Popover API covers dropdowns with zero script, and CSS's :has() selector replaces JS-added helper classes for parent-based styling.
His running list covers more than a dozen features in total, from container queries to scroll-driven animations, all in service of one argument: reach for the platform first, and use JavaScript only when the browser genuinely can't do it alone.