CSS
2 tested fixes about CSS.
2 tested fixes about CSS.
Add body:has(dialog[open]) { overflow: hidden; } and the page stays still while a dialog is open, then scrolls again when it closes. No JavaScript needed.
Watch and read →Add text-wrap: balance to your headings and the browser evens out the line lengths, so no word is left on a line of its own.
Watch and read →