Change print color for ::first-letter and ::first-line pseudo-elements

Pseudo-elements `::first-letter` and `::first-line` now get printed
black by default as `::before` and `::after` are.

All pseudo-elements:
https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements

Closes #1715.
This commit is contained in:
Sid Roberts
2015-06-22 21:50:50 +01:00
committed by Hans Christian Reinl
parent 85d79ed6cc
commit fc05bc82ab
3 changed files with 11 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
### HEAD
* Change print color for ::first-letter and ::first-line pseudo-elements
([#1715](https://github.com/h5bp/html5-boilerplate/pull/1715)).
### 5.2.0 (May 1, 2015)
* Update jQuery to `v1.11.3`

4
dist/css/main.css vendored
View File

@@ -211,7 +211,9 @@ textarea {
@media print {
*,
*:before,
*:after {
*:after,
*:first-letter,
*:first-line {
background: transparent !important;
color: #000 !important; /* Black prints faster:
http://www.sanbeiji.com/archives/953 */

View File

@@ -203,7 +203,9 @@ textarea {
@media print {
*,
*:before,
*:after {
*:after,
*:first-letter,
*:first-line {
background: transparent !important;
color: #000 !important; /* Black prints faster:
http://www.sanbeiji.com/archives/953 */