Fixes printing regression a10fde1
Merge pull request #5368 from yurydelendik/fixprintcss

Fixes printing regression a10fde1