diff options
author | Patrick H. Lauke <redux@splintered.co.uk> | 2018-04-16 02:25:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-16 02:25:39 +0300 |
commit | e000933c17b55f667dc9d6d97a44292adc532516 (patch) | |
tree | 413a26f16d89cc5c6eb401fedc072f2202b637f3 | |
parent | 871e0838a437f18c30a4f975cd80874d70b717fd (diff) |
Remove `dialog` from the HTML5 shim style (#26269)
`<dialog>`, in browsers that support it, has user agent styles of `dialog { display:block; ...} dialog:not([open]) { display:none; }`
by forcing it to `display:block` in the shim, the dialog is shown even when closed. There's no clean way to shim this for non-supporting browsers,
but arguably these browsers would have further problems with pure `<dialog>` usage anyway, and it's up to authors to then use different elements/shims.
-rw-r--r-- | scss/_reboot.scss | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/_reboot.scss b/scss/_reboot.scss index dd23f16d1b..cfc99391ec 100644 --- a/scss/_reboot.scss +++ b/scss/_reboot.scss @@ -42,7 +42,7 @@ html { // stylelint-disable selector-list-comma-newline-after // Shim for "new" HTML5 structural elements to display correctly (IE10, older browsers) -article, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section { +article, aside, figcaption, figure, footer, header, hgroup, main, nav, section { display: block; } // stylelint-enable selector-list-comma-newline-after |