[Webkit-unassigned] [Bug 212372] New: Element.offsetParent of fixed position element under transformed element should not be null

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 26 06:18:29 PDT 2020


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

            Bug ID: 212372
           Summary: Element.offsetParent of fixed position element under
                    transformed element should not be null
           Product: WebKit
           Version: Safari 13
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: federico.zivolo at gmail.com

Reported by federico.zivolo at gmail.com in https://bugs.chromium.org/p/chromium/issues/detail?id=20574#c67.

For the following test case:

<!DOCTYPE html>
<div id="transformed" style="transform: translateX(2px); height: 50px;">
  <div id="fixed" style="position: fixed">FIXED</div>
</div>
<div id="output" style="height: 3000px"></div>
<script>
output.textContent = fixed.offsetParent ? fixed.offsetParent.id : "null";
</script>

Chrome: null
Firefox: transformed

Firefox's behavior is more reasonable because "transformed" is the container of "fixed".

This issue is somewhat related to https://bugs.webkit.org/show_bug.cgi?id=37839

-- 
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/20200526/4cea7cb8/attachment.htm>


More information about the webkit-unassigned mailing list