PostCSS plugin which add selector needed by dialog-polyfill
/* Input */
.test1::backdrop {
background-color: #fff;
}
/* Output */
.test1::backdrop, .test1 + .backdrop {
background-color: #fff;
}
npm i postcss postcss-dialog-polyfill --save-dev
Check out PostCSS documentation on how to use PostCSS plugins.