Text content is missing when printing from reddit.com
Categories
(Core :: Printing: Output, defect, P2)
Tracking
()
People
(Reporter: mbalfanz, Assigned: emilio)
Details
(Whiteboard: [print2020_v81][old-ui+])
Attachments
(3 files)
|
1.14 MB,
image/png
|
Details | |
|
350 bytes,
text/html
|
Details | |
|
47 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details | Review |
I can reproduce the following issue on OS X and Windows.
STR:
- Visit https://www.reddit.com/r/Clojure/
- Print the page, e.g. to PDF
ER: The (text-) content of the page should be present
AR: Most text is missing
See screenshot attached.
| Reporter | ||
Comment 1•5 years ago
|
||
Note: I could reproduce this in the current stable release. The same problem is also visible in the new doorhanger/print preview. All settings were left on default.
Comment 2•5 years ago
|
||
I can't reproduce on Ubuntu 20.04. (or on macOS 10.14). That said, it may be because the content in the reddit link has been changes since then?
CCing, TYLin who is the best person about missing contents in printing.
| Reporter | ||
Comment 3•5 years ago
|
||
I can still reproduce it today. It seems to be related to two lines of CSS that add a shadow for long content via mask-image:
.Chtkt3BCZQruf0LtmFg2c {
-webkit-mask-image:linear-gradient(180deg,#000 60%,transparent);
mask-image:linear-gradient(180deg,#000 60%,transparent);
overflow:hidden;
padding:5px 8px 10px
}
| Assignee | ||
Comment 4•5 years ago
|
||
This only reproduces if you don't print backgrounds, here's a reduced test-case that reproduces.
When we remove backgrounds, we also auto-darken foreground colors. My guess is that we're not applying this auto-darkening properly when drawing the mask image or something of that sort.
From a quick look, it seems Chrome also suppresses mask images when printing "without backgrounds". I'll see which of the two options is better.
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 6•5 years ago
|
||
| Assignee | ||
Updated•5 years ago
|
Comment 7•5 years ago
|
||
I am not sure whether we should uplift this to beta (but I think it would be nice to have).
Comment 9•5 years ago
|
||
| bugherder | ||
Comment 10•5 years ago
|
||
Comment on attachment 9173184 [details]
Bug 1660774 - Masks shouldn't be suppressed for print. r=miko,jwatt
Beta/Release Uplift Approval Request
- User impact if declined: Missing elements from some printed pages.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky):
- String changes made/needed:
Comment 11•5 years ago
|
||
Comment on attachment 9173184 [details]
Bug 1660774 - Masks shouldn't be suppressed for print. r=miko,jwatt
Approved for 81.0b6.
Comment 12•5 years ago
|
||
| bugherder uplift | ||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Description
•