-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First-letter prints incorrectly in Chrome #21771
Comments
As a temporary solution before this is fixed, this seemed to give proper print results for h1.
|
It's not display headings, it's every Hx. This is all fine:
All of those display with first letter problem:
Tested with v4.0.0-alpha.6 |
from #22308 @bschlosser
|
Possibly also related #22425 |
Seems to be okay in 4.0.0 alpha 5 but seeing a similar issue with alpha 6 |
I see this also in the latest Alpha. Working around it by disabling print styles |
I see this as well in alpha 6. Overriding the <style media="print">
::first-letter{
margin: 0;
padding: 0;
}
</style> |
Same problem for me for text within It seems that the problem occurs already when the The only way I can fix it is by removing the CSS by setting |
Can someone explain why/how this happens? |
Short explanation: it's a Chrome bug. I actually found the issue in the Chrome bug tracker, but as I commented on it the issue was moved/locked...in any case, it was https://bugs.chromium.org/p/chromium/issues/detail?id=739800 (if anybody else has more joy seeing it with their credentials) |
Bootstrap itself doesn't use any `::first-letter` or `::first-line` styles. These selectors also cause(d) problems in IE11 (see h5bp/html5-boilerplate#1799) and currently cause a nasty rendering bug in Chrome where the first letter is vertically shifted (see #21771) As h5bp has now removed these as well, no need to keep and comment them out. See h5bp/html5-boilerplate#1961 / h5bp/html5-boilerplate#1962
@patrickhlauke FWIW I can view the bug without signing in. Thanks for the link. :) |
@nafg yes the bug was reopened to the public after a friend at Google queried it being restricted https://bugs.chromium.org/p/chromium/issues/detail?id=739800#c6 |
Fixes twbs/bootstrap#21771 which affected printing the tutorials to PDF.
When using display headings and trying to print (Ctrl+P) the first letter of the heading breaks layout.
Tested on Chrome v55
Here is sample HTML code
The text was updated successfully, but these errors were encountered: