guardian / dotcom-rendering

The Guardian web rendering service (aka DCR/DCAR)
https://www.theguardian.com
Apache License 2.0
253 stars 29 forks source link

Printing issue with interactive block components #9584

Open cemms1 opened 10 months ago

cemms1 commented 10 months ago

A user reported they have issues with printing Guardian articles with graphics in them.

Example article: https://www.theguardian.com/environment/2023/nov/15/water-related-violence-russia-israel-report

Screenshot: image

georgeblahblah commented 9 months ago

Because the interactive is, well, interactive (it only displays content after the page is loaded and it's scrolled to view), it doesn't appear in the print view. This is because the print view doesn't support dynamic elements on the page which rely on javascript - much like you can't print a YouTube video.

paperboyo commented 9 months ago

Well. Low priority this well may be! But.

It is not interactive, it’s static, doesn’t move, doesn’t react. And even if it would move that’s not the reason you couldn’t freeze it (see invention of photography). How we happen to load it is a (sad) implementation detail. It does appear in print preview, but just for the first graph, the latter two should appear as well:

image

The fact that you cannot print a Youtube video is lazy developers not sticking a thumbnail into print CSS (they added a play button though).

All in all, this is real and shouldn’t be closed. Print issues are surprisingly popular complaints with Readers’ Help and print CSS awareness with every new bit of work should match that of accessibility.

georgeblahblah commented 9 months ago

Reopening to investigate a bit more! Thanks @paperboyo for your thoughts