postcss-dialog-polyfill

PostCSS plugin which add selector needed by dialog-polyfill

Usage no npm install needed!

<script type="module">
  import postcssDialogPolyfill from 'https://cdn.skypack.dev/postcss-dialog-polyfill';
</script>

README

postcss-dialog-polyfill

PostCSS plugin which add selector needed by dialog-polyfill

/* Input */
.test1::backdrop {
  background-color: #fff;
}
/* Output */
.test1::backdrop, .test1 + .backdrop {
  background-color: #fff;
}

Installation

npm i postcss postcss-dialog-polyfill --save-dev

Usage

Check out PostCSS documentation on how to use PostCSS plugins.