FIX: Fix detection of a parent transformed element on Firefox #74
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/position-fixed-firefox144"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Starting with Firefox 144, offsetParent is now
nullwhen an element has position fixed (while previously, it would return<body>). The hack previously used for Firefox is not working anymore and we have to use the same method as for Chromium.I don't have a reference for the change. The bug on Firefox side is still open but with an activity a few months ago. There are also traces it has been fixed in some subsequent commits.
I'm still seeing the old behavior in Firefox 144. This is the test I used.
I just took a random element on this page:
That looks like an improvement—
nullis actually a useful value there. And from what I can see, recent Chrome versions are also behaving like this now. Does attached patch look like it would work for you?Yes, it works fine as well.
Pull request closed