Skip to content

Commit

Permalink
Remove ::first-letter and ::first-line selectors from print styles
Browse files Browse the repository at this point in the history
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
  • Loading branch information
patrickhlauke committed Jul 11, 2017
1 parent 6436233 commit 7a781b2
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions scss/_print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,7 @@
@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 {
// Bootstrap specific; comment out `color` and `background`
//color: #000 !important; // Black prints faster:
// http://www.sanbeiji.com/archives/953
Expand Down

0 comments on commit 7a781b2

Please sign in to comment.