background-clip: text does not work well with background-attachment: fixed
Categories
(Core :: Layout: Text and Fonts, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox57 | --- | fix-optional |
People
(Reporter: lanny, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
| Comment hidden (mozreview-request) |
Updated•9 years ago
|
Comment 5•8 years ago
|
||
Comment 6•8 years ago
|
||
I just upgraded to Firefox 71.0 on the Mac and I am still seeing this issue. I would like to remove the workaround my site has specifically to handle firefox.
Comment 11•5 years ago
|
||
Comment 12•5 years ago
|
||
(Screenshot taken in Firefox 78.0.2 at Windows 10, 1dppx resolution. Outcome in Nightly from 2020-07-14 is identical.)
Comment 13•5 years ago
|
||
bug 1543117 is even better report of presumably same issue, with most excellent testcase (but it's bug page seems nag infested).
Currently there are several famous CSS demos that unintentionally exhibits this bug, last one encountered is Adam Argyle's CSS Fixed Conic Fill (it has non-conic gradient fallback that sadly fails on this very exact bug) and perhaps this one by Valerii Ladomyriak.
There is also bug 1545128 that exhibits somehow similarly strange behaviour of background-clip: text - this time in conjunction with transform.
Comment 14•4 years ago
|
||
Couldn't be that complex to fix this, right?
Updated•3 years ago
|
Comment 15•1 year ago
|
||
This is still a problem in 2024. Simplified test case I made before doing a search here made this bug pop up.
I hit it while coding a swipe theme switcher (attached video) with no content duplication. This theme switcher relies on using fixed gradient backgrounds (simplified version illustrating the idea). When there is enough text content to scroll, I hit this bug in Firefox.
| Comment hidden (advocacy) |
Comment 17•7 months ago
|
||
It looks like this is an invalidation problem. When you click the text or unfocus the window it paints properly.
Comment 18•7 months ago
|
||
It looks like this is an invalidation problem. When you click the text or unfocus the window it paints properly.
For me just unfocussing the window or only clicking at the text is not enough; to force proper repaint I have to select the text content (where it really is, not where its "ghost" is shown at the moment), or switch to other tab and return back. (This is actually creepily amusing, since it feels like ghost that moves only when I am not looking, or turns visible only when grasped :].)
Comment 19•7 months ago
|
||
I talked with mstange about this and we came to the conclusion that only reasonable way forward is switch to using a WebRender mask for the background and have WebRender scroll things properly. We should be able to add the text mask to the clip.
Description
•