Skip to content

Instantly share code, notes, and snippets.

@jackilyn
Created November 27, 2012 17:42
Show Gist options
  • Save jackilyn/4155798 to your computer and use it in GitHub Desktop.
Save jackilyn/4155798 to your computer and use it in GitHub Desktop.
Print CSS
@media print {
header {
background: none;
color: #000;
}
header img {
filter: url(inverse.svg#negative);
-webkit-filter: invert(100%);
filter: invert(100%);
}
}
Display the source blob
Display the rendered blob
Raw
<svg xmlns="http://www.w3.org/2000/svg">
<filter id="negative">
<feColorMatrix values="-1 0 0 0 1
0 -1 0 0 1
0 0 -1 0 1
0 0 0 1 0" />
</filter>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment