Comment

Comment by simonw

This is a neat piece of modern CSS:

  body:has(dialog[open]) {
    overflow: hidden;
  }
https://caniuse.com/css-has confirms the has() selector has had widespread browser support since December 2023.
parent simonw 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton