I have a form that should print as plain text when printing, i.e. inputs and text fields should not have borders. I added a print stylesheet, something like
@media print {
input, textarea {
border: 0 !important;
border-style: none !important;
}
}
This works in FF, but not in chrome.
-webkit-shadow and
-webkit-appearance
also do not affect print output. A.
See: fiddle
Change . This is ultimately caused by:
Chrome issue 174583 : a shadow shadow prints when printed.
The proposed workaround for adding -webkit-filter: blur (0) kinda works, but still leaves traces of the shadow of the input border, so a javascript workaround like this in the accepted answer is now the best approach.