0.3.2 • Published 6 months ago
modern-now v0.3.2
Dynamically import polyfills to support
Popover
Backdrop may not be supported by all browsers. Use a dialog instead if needed.
Sample css for open popovers:
/* You need two distinct declaration because otherwise an invalid declaration invalidates all rules */
[popover]:popover-open {
}
[popover].\:popover-open {
}
https://github.com/oddbird/popover-polyfill
Dialog
Dialog are dynamically registered using qsa-observer if needed.
Sample css for backdrop:
dialog::backdrop {
/* native */
background-color: green;
}
dialog + .backdrop {
/* polyfill */
background-color: green;
}
https://github.com/GoogleChrome/dialog-polyfill
Browser Support
Basically anything supporting module and dynamic imports
Firefox 67+ (2019-05) Chrome 63+ (2017-12) Edge 79+ (2020-01) Safari 11.1+ (2018-29)