Closed
Bug 1458177
Opened 7 years ago
Closed 6 years ago
text shadow misbehaves with webrender async scene building
Categories
(Core :: Graphics: WebRender, defect, P1)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox-esr60 | --- | unaffected |
firefox60 | --- | unaffected |
firefox61 | --- | disabled |
firefox62 | --- | disabled |
People
(Reporter: yamadat501, Assigned: Gankra)
References
Details
Attachments
(1 file)
159.99 KB,
image/png
|
Details |
STR
1. set gfx.webrender.all true
2. Open http://nihon.syoukoukai.com/modules/stories/index.php?lid=1265
3. Scroll the page or select some text.
Expected results
text with shadow displays normally.
Actual results
text shadow is different from original text.
When gfx.webrender.all is false and gfx.webrender.enabled is true, the problem doesn't happen (As far as I tested)
Comment 1•7 years ago
|
||
I can repro this on macOS as well.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•7 years ago
|
Blocks: stage-wr-trains
Priority: -- → P1
Assignee | ||
Comment 2•7 years ago
|
||
I can repro this on windows and linux as well.
Assignee | ||
Comment 3•7 years ago
|
||
str:
data:text/html,<div style="width: 400px;text-shadow: 1px 1px 1px grey;">Hello there my name is alexis and this is my amazing test-case for shadows being broken under async scene building
literally just a multi-line text-shadow. analyzing now.
Assignee | ||
Comment 4•7 years ago
|
||
I was able to reproduce this in a capture, but the scene.ron looks fine. Converting that scene to a reftest produces something that doesn't reproduce the issue. In addition pressing keys to adjust the zoom level fixes the issue. It looks like we might be corrupting the resource or gpu caches?
kvark found it suspicious that the font entry had a different font_key from its own key:
font_instances: {
..
((3), 57): (
font_key: ((3), 56),
..
)
}
font_templates: {
..
((3), 56): Native,
}
Assignee | ||
Comment 5•7 years ago
|
||
huh: on linux i'm seeing the color of the shadow being ignored for cache lookup when i turn on asyn-scene-building.
So if you open:
data:text/html,<div style="width: 400px;text-shadow: 1px 1px 2px black;">Hello there my name is alexis and this is my amazing test-case for shadows being broken under async scene building
and then (identical except for shadow color):
data:text/html,<div style="width: 400px;text-shadow: 1px 1px 2px white;">Hello there my name is alexis and this is my amazing test-case for shadows being broken under async scene building
the white shadow will appear black, as it will seemingly find the old black shadow from the other tab in the shadow(?) cache
Updated•7 years ago
|
status-firefox60:
--- → unaffected
status-firefox62:
--- → disabled
status-firefox-esr52:
--- → unaffected
status-firefox-esr60:
--- → unaffected
See Also: → https://github.com/servo/webrender/issues/2769
Reporter | ||
Comment 7•6 years ago
|
||
Confirmed fixed on try-build in Bug 1466549.
Updated•6 years ago
|
Assignee: nobody → a.beingessner
See Also: → https://github.com/servo/webrender/pull/2776
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•