DEV Community


Discussion on: HTML can do that?

claudepache profile image
Claude Pache • Edited

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.

maxart2501 profile image
Massimo Artizzu

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