Closed acerix closed 6 years ago
For example, fullcalendar includes a separate CSS file for printers like this:
<link href="fullcalendar.print.css" rel="stylesheet" media="print">
The media="print" part currently gets lost, so CSS which is intended for printers only is applied on screen view.
The patch puts wraps such CSS with @media print {} so it only applies on printers.
@media print {}
Hi, thanks for the pull request. For approval you need to add unti test for this case.
Added test case and made it more general (apply to type=screen, etc. as well), thanks
Thanks.
For example, fullcalendar includes a separate CSS file for printers like this:
The media="print" part currently gets lost, so CSS which is intended for printers only is applied on screen view.
The patch puts wraps such CSS with
@media print {}
so it only applies on printers.