Skip to content
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

Google Chrome print first-letter #21926

Closed
TheSharpieOne opened this issue Feb 6, 2017 · 2 comments
Closed

Google Chrome print first-letter #21926

TheSharpieOne opened this issue Feb 6, 2017 · 2 comments
Labels

Comments

@TheSharpieOne
Copy link

TheSharpieOne commented Feb 6, 2017

Similar to #21092 (in the styles which are causing an issue).

I have noticed when printing in Google Chrome (may be a browser issue, but bootstrap's specific styles trigger it), that the first letter is shifted up or down (see test case and screenshots).

Removing the following seems to fix the issue.

@media print
_print.scss:13
*, :after, :before, :first-letter, blockquote:first-line, div:first-line, li:first-line, p:first-line {
    text-shadow: none!important;
    box-shadow: none!important;
}
  • Operating system and version Mac OS X 10.11
  • Browser and version Chrome 56
  • Reduced test cases: JS Bin (you will need to print the output, not the editor)

image

(Yes, it prints the same way it looks in the preview seen above)

markup used:

<div class="container">
  <div class="row">
    <div>
      <h1>
        Hello there
      </h1>
    </div>
  </div>
</div>

Note: the <div> around the <h1> may seem superfluous, but it would contain classes and such for other styling which was removed to reduce the test case. It is important that the content is wrapped.
The <h1> can also be replaced by <small> (and maybe more tags) which is case a similar defect, but shift the first character up instead of down.

@bardiharborow
Copy link
Member

Ref #21771.

@TheSharpieOne
Copy link
Author

I did search... Didn't find that issue.
Closing as a duplicate of #21771

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants