Hi, I found print.css is not including for print version. We need to use
styles/css/components/print.css: { media: print }
to include files in print version.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

levmyshkin created an issue. See original summary.

levmyshkin’s picture

FileSize
613 bytes

Patch here:

Jeff Burnz’s picture

Do you mean it's not working for a particular browser or set of styles?

I ask because print.css uses an @media print rule, although I can see that having both is safer, but another http request.

levmyshkin’s picture

I found out why my print.css styles didn't apply. When I wrote styles in custom.css file, these styles overlap my print.css styles. I think print.css should be included after custom.css file.
Now:
print.css file
After patch:
print.css file

rohit.rawat619’s picture

Assigned: Unassigned » rohit.rawat619
Status: Needs review » Active
rohit.rawat619’s picture

Assigned: rohit.rawat619 » Unassigned
Status: Active » Needs review
FileSize
280.14 KB
rohit.rawat619’s picture

Version: 8.x-1.x-dev » 7.x-1.x-dev
FileSize
280.14 KB