I mostly build frontend web apps. Many of my clients use Microsoft Edge, while engineers I work with use Firefox, so browser support comes up in my day-to-day work.

I've been reading Modern Web Guidance 1.0, and I found its dialog guide useful. One question stuck with me: should an overlay block the rest of the page, or let people keep working while it is open? That answer changes which browser feature fits.

Version 1.0 went stable on November 10, 2026, with Firefox and Edge joining the cross-browser effort.

Start with the behavior

The guide uses a confirmation dialog as an example. For a destructive confirmation, I check that:

  • The dialog blocks interaction with the page behind it.
  • Keyboard focus stays in the dialog and returns to the button that opened it.
  • Escape closes it.
  • A visible heading gives it an accessible name.
  • Focus starts on the safe choice, such as Cancel.

Native <dialog> covers the modal behavior when you open it with showModal(). Here’s a small example:

<button id="delete-button" type="button">Delete</button> <dialog id="confirm-delete" aria-labelledby="confirm-title"> <h2 id="confirm-title">Delete this task?</h2> <form method="dialog"> <button value="cancel" autofocus>Cancel</button> <button value="delete">Delete</button> </form> </dialog> <script> const dialog = document.querySelector("#confirm-delete"); document.querySelector("#delete-button").addEventListener("click", () => { dialog.showModal(); }); dialog.addEventListener("close", () => { const action = dialog.returnValue; dialog.returnValue = ""; if (action === "delete") { // Delete the task in your app. } }); </script> 

The app decides what the selected action does. The guide says to read and clear dialog.returnValue in the close listener; an Escape dismissal can otherwise leave a stale value. See “Hooking into close”.

Here’s the source section I’d check: “Choose the overlay type”. It names confirmations as modal dialogs and includes the guide’s own code example.

Screenshot of Modern Web Guidance’s “Choose the overlay type” section, showing its modal dialog recommendation and code example.

To try this with an agent, I’d say: “Use the Modern Web Guidance Dialog guide to implement this confirmation in our app. Check Edge and Firefox support, and explain any fallback before changing code.”

The Modern Web Guidance site also recommends this command to install its skills for your coding agent:

npx modern-web-guidance@latest install 

A library can still be the better fit when it handles behavior or browser differences your product needs. Compare more than bundle size: custom components also need keyboard, focus, assistive technology, and touch support. Native features give you a foundation, but you still need to check the interaction.

Keep the fallback in mind

Native features do not automatically make an interface accessible or correct. Give controls clear names, keep the content understandable, and test keyboard and assistive technology use.

Check support for the browsers you actually serve. Baseline groups features by support across Chrome, Edge, Firefox, and Safari. Its “widely available” label means all core browsers have supported a feature for at least 30 months. Treat that as a starting point, then check your own support policy and any newer options you plan to use.

Decide what should happen when a feature is missing. A decorative effect may be safe to skip. A layout may need an @supports branch. An interaction may need JavaScript. Chrome’s cross-browser guidance walks through these fallback choices.

A quick check before adding a dependency

This is the decision loop I took from the guides:

Flowchart showing when to use a native browser feature, add a fallback, or choose a library.

JavaScript still matters for application logic and browser gaps. What I took from the guide: decide what the UI needs to do, check what the browser offers and where it works, then add a library if there is still a gap.

When you’re deciding how to build a UI feature, do you check the native option first? What do you usually reach for, and why?