0.3.2 • Published 6 months ago

modern-now v0.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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)

0.3.0

7 months ago

0.2.0

8 months ago

0.3.2

6 months ago

0.3.1

7 months ago

0.1.0

9 months ago