diff options
| author | Patrick H. Lauke <[email protected]> | 2017-07-11 19:51:21 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-07-11 19:51:21 +0100 |
| commit | 7a781b2ae00cfbc5f49530a4de1394c4008b499f (patch) | |
| tree | f60aa61268a2384cd31faaaf67426461360a82a5 | |
| parent | 6436233a9c786d32990a5fbc0c7dcc9e1af8332b (diff) | |
| download | bootstrap-7a781b2ae00cfbc5f49530a4de1394c4008b499f.tar.xz bootstrap-7a781b2ae00cfbc5f49530a4de1394c4008b499f.zip | |
Remove ::first-letter and ::first-line selectors from print styles
Bootstrap itself doesn't use any `::first-letter` or `::first-line`
styles. These selectors also cause(d) problems in IE11 (see
https://github.com/h5bp/html5-boilerplate/pull/1799) and currently cause
a nasty rendering bug in Chrome where the first letter is vertically
shifted (see https://github.com/twbs/bootstrap/issues/21771)
As h5bp has now removed these as well, no need to keep and comment them
out. See https://github.com/h5bp/html5-boilerplate/issues/1961 /
https://github.com/h5bp/html5-boilerplate/pull/1962
| -rw-r--r-- | scss/_print.scss | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/scss/_print.scss b/scss/_print.scss index e20219a38..7f8d9900a 100644 --- a/scss/_print.scss +++ b/scss/_print.scss @@ -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 |
