What is the workaround for using alternative rules in Safari?
I am currently implementing the angularPrint
directive to enable print functionality on certain pages. This directive includes some helper classes in my document and utilizes the @page
directive. While everything works smoothly on most browsers, Safari does not support these specific rules. I have discovered that the rules are not compatible with Safari and I am seeking suggestions for alternatives. Any ideas?
@page {
margin: 0cm;
/*size: A4 landscape;*/
}
@page :first {
margin-top: 0cm;
}
@page :left {
margin-left: 0cm;
margin-right: 0cm;
}
@page :right {
margin-left: 0cm;
margin-right: 0cm;
}