closeby
A feature related to compatibility fallbacks for light dismiss behavior, in which clicking the backdrop closes a dialog. It provides a degraded implementation when a browser does not yet support the native declarative mechanism.
Timeline (last 90 days)
The invoker command attribute feature is still in a gradual rollout stage, with inconsistent support across mainstream browsers, so the article's example retains a closeby fallback.
HTML's closeby attribute (used for <dialog>) allows the browser to automatically close the dialog when the user clicks outside it or presses Esc, without any JavaScript.
The browser coverage of closeby is not yet complete, so after enabling Modern Web Guidance, the generated code detects whether this attribute is supported and falls back to the traditional event listener approach when it is not.
All Facts (3)
The invoker command attribute feature is still in a gradual rollout stage, with inconsistent support across mainstream browsers, so the article's example retains a closeby fallback.
50%UnverifiedHTML's closeby attribute (used for <dialog>) allows the browser to automatically close the dialog when the user clicks outside it or presses Esc, without any JavaScript.
50%UnverifiedThe browser coverage of closeby is not yet complete, so after enabling Modern Web Guidance, the generated code detects whether this attribute is supported and falls back to the traditional event listener approach when it is not.
50%