Closed Bug 1449976 Opened 6 years ago Closed 6 years ago

[WebRender enabled] text-shadow is wrongly shown on clipped text

Categories

(Core :: Graphics: WebRender, defect, P1)

Unspecified
All
defect

Tracking

()

VERIFIED FIXED
mozilla61
Tracking Status
firefox-esr52 --- unaffected
firefox59 --- unaffected
firefox60 --- unaffected
firefox61 --- unaffected

People

(Reporter: Fanolian+BMO, Assigned: Gankra)

References

(Blocks 1 open bug, )

Details

(Keywords: regression, reproducible)

Attachments

(4 files, 1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
Build ID: 20180329100042

Steps to reproduce:

1. Sign in to Gmail.
2. Go to Gmail's Settings > General.
3. Enable "Show snippets - Show snippets of the message (like Google web search!)" . The option is near the bottom.
4. Go to Inbox or All Mail, which shows a list of email and some of the email content (snippets).

5. Turn on devtool's Inspector on the page.
6. Add the following rule in the Rules panel on the right, to set text-shadows on all text:
* { text-shadow: 1px 1px; }
7. Observe the snippets


Actual results:

Text shadow is showing on clipped snippets, overlapping the date, and extending towards the right end of the page.
(Please see the attached screenshot.)


Expected results:

With WebRender is off, text shadow is not shown on those clipped text.
I found another example on https://www.inoreader.com. The line the top red arrow is pointing to is merely text shadows for the clipped content

The issue on this site, however, is seemingly affects only CJK characters. I do not see such extra text shadows for English content in a similar setting.
Has Regression Range: --- → yes
Has STR: --- → yes
Whiteboard: regression
Blocks: 1447998
Whiteboard: regression
Interestingly, I am _not_ able to capture the bugged parts of text-shadow using Nightly's "Take a Screenshot" feature.
I can see the bugged text-shadow. I can select the relevant regions using the Screenshot feature. But when I save the screenshot locally and open it with various image viewing software, the bugged part is gone from the image file! Somehow the bugged text shadow is bypassing the Screenshot feature...

p.s. The attached screenshots in previous comments are taken with Windows' Snipping Tool.
I believe the screenshot thing is just because the Take A Screenshot feature doesn't use webrender (same as printing and a few other things).
Confirmed I can see this on windows 10 (not on mac though).
Assignee: nobody → a.beingessner
Status: UNCONFIRMED → NEW
Ever confirmed: true
STR: 

data:text/html,<div style="width: 3em; text-overflow: clip; overflow: hidden;text-shadow: 1px 1px black; white-space: nowrap;color: red;">overflow text</div>
try builds from bug 1447998 comment 7:
> WR @ 53750b8b
mozregression --repo try --launch 12aae4a8f4d67ff0d3549465d0b9f1479825914b --pref gfx.webrender.all:true startup.homepage_welcome_url:"data:text/html,<div style='width: 3em; text-overflow: clip; overflow: hidden;text-shadow: 1px 1px black; white-space: nowrap;color: red;'>overflow text</div>"
good

> WR @ 097bc025ccc85fad7891d3422d2bccefc0e42948
mozregression --repo try --launch b083a08fc957f9c90d6e963b1fc95567a96f5710 --pref gfx.webrender.all:true startup.homepage_welcome_url:"data:text/html,<div style='width: 3em; text-overflow: clip; overflow: hidden;text-shadow: 1px 1px black; white-space: nowrap;color: red;'>overflow text</div>"
bad

Regression range: https://github.com/servo/webrender/compare/53750b8b5760a9e63414ae486de7249cd49ac700...097bc025ccc85fad7891d3422d2bccefc0e42948
OS: Unspecified → All
Version: 61 Branch → Trunk
Wait ok my STR works on mac too (which is a relief since the issue should be platform independent), I'm not sure why I couldn't see it in gmail on macos :S
Attachment #8963766 - Attachment is obsolete: true
fixed upstream, needs a test in gecko
Depends on: 1449562
Still waiting for wr update, but here's the test.
Attachment #8964677 - Flags: review?(jmuizelaar)
Attachment #8964677 - Flags: review?(jmuizelaar) → review+
Fixed merged into gecko, test can land now.
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c880e315c1b3
Add regression test for fast-shadow clipping. r=jrmuizel
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5d2002c31762
Add a pinch more fuzz on Windows. r=me
https://hg.mozilla.org/mozilla-central/rev/c880e315c1b3
https://hg.mozilla.org/mozilla-central/rev/cf994f4482ab
https://hg.mozilla.org/mozilla-central/rev/5d2002c31762
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
I can verify the issue is fixed by bug 1449562 in Nightly. Thanks.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: