Missing text-shadow when a lot of text has the property
Categories
(Core :: Graphics: WebRender, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox66 | --- | fixed |
People
(Reporter: nical, Assigned: u480271)
References
Details
Attachments
(6 files)
Go to any page with a lot of text (for example https://www.w3.org/TR/html52/single-page.html) and add the property text-shadow: black 0px 0px 10px; such that it applies to a lot of text. Then scroll around, you should see some text missing the shadow, when scrolling away and back it's not necessarily the same text that misses its shadows.
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Getting rid of the blur on the text-shadow stops this from reproducing. Is there a limit to how many blur filters we will draw in a given frame?
Comment 2•6 years ago
|
||
Each blurred shadow seems to also create a picture, so maybe the limit is on those?
Any ideas Glenn?
| Reporter | ||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
There's no specific limit on pictures and / or blur filters. This will require more detailed investigation to see what is happening.
:mattwoodrow points out my patches might just hide the missing shadows because the collapse renders fewer shadows. I'll investigate the before patch situation.
I've investigated what is happening to the missing text-shadows and I can see that they are being rendered but the texture cache entry for the shadow is empty (ie. all alpha is 0). I captured the rendering in RenderDoc and looked at the texture 2d array to confirm this. (see renderdoc attachment)
I've checked the submission of the picture primitives and the texture cache appears to report that the entries are valid.
Also, if you keep scrolling down slowly, no new shadows are added after some point.
Updated•6 years ago
|
| Assignee | ||
Comment 10•6 years ago
|
||
Working with :emilio and :gw on the issue of double rendering of blurs it was hit on that instead of using the texture cache that using picture caching might be a better solution. Switching from texture cache to picture cache fixes the issue of missing shadows.
| Assignee | ||
Comment 11•6 years ago
|
||
Caching text-shadows into texture cache was leading to rendering artifacts with
missing shadows. Switch to using the picture path for all picture blurs and
rely upon picture caching to reduce repetitive work.
| Assignee | ||
Comment 12•6 years ago
|
||
I notice that with picture caching that we don't get batching of the initial text runs like we did when using texture cache. I'm opening a follow up bug to investigate that.
| Assignee | ||
Comment 13•6 years ago
|
||
Depends on D17329
Updated•6 years ago
|
Comment 15•6 years ago
|
||
Comment 16•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/48cff9538a5e
https://hg.mozilla.org/mozilla-central/rev/fdb28a194129
Description
•