Skip to content

Commit

Permalink
::first-letter in print style can cause incorrect rendering in Chrome (
Browse files Browse the repository at this point in the history
…#1962)

Chrome currently has a bug (when printing) that results in
::first-letter being vertically misaligned under certain (seemingly
unrelated) conditions. This PR fixes issue by removing the CSS that
causes the issue.
  • Loading branch information
coliff authored and roblarsen committed Jul 11, 2017
1 parent fb6cb8d commit efa3db1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
10 changes: 1 addition & 9 deletions dist/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -223,15 +223,7 @@ textarea {
@media print {
*,
*:before,
*:after,
p:first-letter,
div:first-letter,
blockquote:first-letter,
li:first-letter,
p:first-line,
div:first-line,
blockquote:first-line,
li:first-line {
*:after {
background: transparent !important;
color: #000 !important; /* Black prints faster:
http://www.sanbeiji.com/archives/953 */
Expand Down
10 changes: 1 addition & 9 deletions src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -213,15 +213,7 @@ textarea {
@media print {
*,
*:before,
*:after,
p:first-letter,
div:first-letter,
blockquote:first-letter,
li:first-letter,
p:first-line,
div:first-line,
blockquote:first-line,
li:first-line {
*:after {
background: transparent !important;
color: #000 !important; /* Black prints faster:
http://www.sanbeiji.com/archives/953 */
Expand Down

0 comments on commit efa3db1

Please sign in to comment.