[Webkit-unassigned] [Bug 96296] Elements with position fixed act like position absolute when parent has a perspective

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 15 07:56:50 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=96296

Martin Robinson <mrobinson at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mrobinson at webkit.org

--- Comment #2 from Martin Robinson <mrobinson at webkit.org> ---
I *believe* this is expected behavior. For instance see https://developer.mozilla.org/en-US/docs/Web/CSS/position which describes `position: fixed`:

"The element is removed from the normal document flow, and no space is created for the element in the page layout. It is positioned relative to the initial containing block established by the viewport, except when one of its ancestors has a transform, perspective, or filter property set to something other than none (see the CSS Transforms Spec), in which case that ancestor behaves as the containing block. (Note that there are browser inconsistencies with perspective and filter contributing to containing block formation.) Its final position is determined by the values of top, right, bottom, and left."

This was finally specified in 2017: https://github.com/w3c/csswg-drafts/issues/913 

You didn't provide a test case, so it's unclear if you also have a transform property on any of the parents. In any case, I think whether or not perspective without a transform also establishes a "containing block for all descendants" is under-specifieid.

In any case, I think this issue can be closed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211015/be745e0b/attachment.htm>


More information about the webkit-unassigned mailing list