`@media` in original document CSS is not written as is
Hello,
I'm trying Paged.js on a page which embeds html5 boilerplate. It adds this style:
@media print {
*,
:after,
:before {
color:#000!important;
text-shadow:none!important;
background:0 0!important;
-webkit-box-shadow:none!important;
box-shadow:none!important
}
a,
a:visited {
text-decoration:underline
}
/* ... */
}
When Paged.js injects it in the document again, it looks like this instead:
@media print {
}
*,
:after,
:before {
color:#000!important;
text-shadow:none!important;
background:0 0!important;
-webkit-box-shadow:none!important;
box-shadow:none!important
}
a,
a:visited {
text-decoration:underline
}
/* ... */
It seems the CSS declaration is not wrapped within its containing media query. So some styles leak all over the place (and in this case, I cannot undo them).