re: HTML can do that? VIEW POST

FULL DISCUSSION
 

But we can still use these today with progressive enhancements! πŸ™‚

... but only after you have carefully tested nonsupporting browsers. ⚠️

The β€œdialog” example looks very bad on latest stable Safari (12.1):

(dialog mixed over content)

but that can be fixed with proper CSS (although I’ve tested it only superficially):

dialog {
    background: white;
    border: medium solid black;
    padding: 1em;
}
dialog:not([open]) {
      display: none !important;
}

At this point, I would still test IE and Edge before using it.

 

There's a polyfill for those, although Edge will arguably gain support as soon as it switches to Chromium.

code of conduct - report abuse