Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
.container causing printing problem on OS X Safari #14868
Comments
cvrebert
added the
css
label
Oct 24, 2014
cvrebert
changed the title from
set widht for .container to auto for @media print to .container causing printing problem on OS X Safari
Oct 24, 2014
|
Might need to file a WebKit/Safari bug too. |
|
Yeah, sounds like a browser inconsistency and not something we'd be able to control. |
gr2m
commented
Oct 28, 2014
|
I agree, I'll try to make a reduced test case and keep you posted. Might be worth to list it as known issue. But either way, is there anything that speaks against setting @media print {
.container {
width: auto;
}
}Although the other browser seem to handle it fine that .container has a fixed width, I thing it would be more reliable to set it to |
|
That'd require some testing and I'm unsure if it's screw with folks' current expected behavior. If you're willing to thoroughly test it out, I'd be down to see a pull request. |
cvrebert
added browser bug confirmed
labels
Oct 28, 2014
|
Confirmed with Safari Version 8.0 (10600.1.25) on OS X Yosemite. |
|
Environment:
Comparison of font sizes when printing (click for full resolution): Once again (#12078), printing in browsers is screwy. And yes, @gr2m's workaround does make Safari scale things closer to the other browsers. |
|
Filed WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=138192 |
cvrebert
added a commit
that referenced
this issue
Oct 29, 2014
|
|
cvrebert |
850a9a0
|
cvrebert
closed this
in #14920
Oct 29, 2014
cvrebert
added a commit
that referenced
this issue
Oct 29, 2014
|
|
cvrebert |
a418273
|
|
<3 you @cvrebert. |
|
|
gr2m
commented
Oct 30, 2014
|
Thanks @cvrebert, much appreciated! |
cvrebert
added a commit
that referenced
this issue
Nov 3, 2014
|
|
cvrebert |
f0d8894
|
This was referenced Nov 3, 2014
cvrebert
added a commit
that referenced
this issue
Nov 5, 2014
|
|
cvrebert |
d904429
|
cvrebert
added a commit
that referenced
this issue
Jan 10, 2015
|
|
cvrebert |
82d786b
|

gr2m commentedOct 24, 2014
I've run into an issue with the latest Safari on Mac OS X (10.9 & 10.10), where the printed page had a much smaller font size than on all other browsers. It looked like the entire page was zoomed out.
What's causing this is
.container. Once I set it towidth: autofor@media print, the problem. You can see the effect a bit on this page: http://jsbin.com/kamafuluxe/3. The difference between the print on Safari and other browsers is much bigger in our internal app though.Happy to send a pull request