Skip to content

Commit

Permalink
Change print color for ::first-letter and ::first-line pseudo-elements
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SidRoberts authored and drublic committed Jul 19, 2015
1 parent 85d79ed commit fc05bc8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
4 changes: 3 additions & 1 deletion dist/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
4 changes: 3 additions & 1 deletion src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit fc05bc8

Please sign in to comment.