Element with position: sticky inside element with a filter scrolls with content
Categories
(Core :: Panning and Zooming, defect, P3)
Tracking
()
People
(Reporter: listenleser, Assigned: botond)
References
(Depends on 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(2 files)
314 bytes,
text/html
|
Details | |
47 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details | Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0
Steps to reproduce:
- Open attached HTML file (which has a
position: sticky
element inside afilter: brightness(1)
element). - Scroll.
Actual results:
The sticky element scrolls with the content, and only jumps back to the bottom when you resize the window.
Expected results:
The sticky element should always be at the bottom, and not scroll with the content.
![]() |
||
Comment 1•6 years ago
|
||
I can reproduce the issue on Nightlu69.0a1 Windows10 if disable WebRender
![]() |
||
Updated•6 years ago
|
![]() |
||
Comment 3•6 years ago
|
||
Regression window:
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=69d79f3e6649eddd011b7985e163f1ff1bb41412&tochange=3e9a803d69edcf799fc979690098f5a176584eac
Regressed by: Bug 1192910
Assignee | ||
Comment 4•6 years ago
|
||
I expect this has the same root cause as bug 1404218. See also bug 1418923 for relevant discussion.
Note that this bug does not affect WebRender; if enabling that is an option for you, that's the most effective workaround.
Assignee | ||
Comment 5•6 years ago
|
||
It also occurs to me that we mitigated the issue underlying bug 1404218 significantly in bug 1300864, but the mitigation does not apply to sticky elements. We may be able to extend the mitigation to apply to sticky elements as well.
Updated•6 years ago
|
Assignee | ||
Comment 6•6 years ago
|
||
Assignee | ||
Comment 7•6 years ago
|
||
Let's use this bug to track extending the mitigation to sticky elements.
Assignee | ||
Updated•6 years ago
|
Comment 9•6 years ago
|
||
bugherder |
Comment 10•6 years ago
|
||
Is this something we should consider for Beta uplift?
Assignee | ||
Comment 12•6 years ago
|
||
Comment on attachment 9077165 [details]
Bug 1564071 - Disable paint skipping for scroll frames that contain a sticky element inside a CSS filter. r=mstange
Beta/Release Uplift Approval Request
- User impact if declined: On some page structures containing a
position:sticky
element inside a CSS filter, scrolling can result in theposition:sticky
element moving even when it's supposed to stay fixed, and the incorrect rendering can persist for an arbitrarily long time, usually until further user interaction like a click. - 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): Very simple patch, only affects an optimization, and very specific page structures.
- String changes made/needed:
Comment 13•6 years ago
|
||
Comment on attachment 9077165 [details]
Bug 1564071 - Disable paint skipping for scroll frames that contain a sticky element inside a CSS filter. r=mstange
Disables an optimization which can cause incorrect rendering of position:sticky elements in some cases. Approved for 69.0b10.
![]() |
||
Comment 14•6 years ago
|
||
bugherder uplift |
Updated•6 years ago
|
Updated•6 years ago
|
Comment 15•6 years ago
|
||
I have managed to reproduce this issue using Firefox 69.0b3 (BuildId:20190708182549) on Windows 10 64bit.
This issue is verified fixed using Firefox 70.0a1 (BuildId:20190805220030) and Firefox 69.0b10 (BuildId:20190801185445) on Windows 10 64bit, macOS 10.13.6 and Ubuntu 18.04 64bit.
Comment 16•5 years ago
|
||
Doesn't work for me.
I use 81.0 version for Ubuntu
I comment here https://bugzilla.mozilla.org/show_bug.cgi?id=1444198
Assignee | ||
Comment 17•5 years ago
|
||
(In reply to Edmar Gomes from comment #16)
Doesn't work for me.
I use 81.0 version for Ubuntu
I comment here https://bugzilla.mozilla.org/show_bug.cgi?id=1444198
The symptoms are similar, but this bug and bug 1444198 are unrelated. This bug is about position: sticky
, while bug 1444198 is about position: fixed
and position: absolute
. (Also, this bug is about an implementation issue that has been fixed, while bug 1444198 is about a behaviour that was recently clarified in the spec, and but is not yet fixed.)
Updated•4 years ago
|
Description
•