[Webkit-unassigned] [Bug 238016] New: Interop issue with position: sticky within contain: paint

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 17 03:14:11 PDT 2022


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

            Bug ID: 238016
           Summary: Interop issue with position: sticky within contain:
                    paint
           Product: WebKit
           Version: Safari 15
          Hardware: iPhone / iPad
                OS: iOS 15
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: klaus.meinhardt1 at gmail.com

Reproduces on iPad 15.4. Didn't check macOS.

https://jsfiddle.net/rh2oe9js/8/

<div style="height: 300px; overflow: auto">
  <div style="height: 600px; contain: paint">
    <div style="position: sticky; top: 0; height: 50px; background-color: yellow">
    </div>
  </div>
</div>

Expected: While scrolling, the yellow sticky div should stick to the top of the scroll container. This is the behavior in all other major browsers.

Actual: Element is not sticky. Removing the "contain: paint" from the parent element makes it sticky again.

-- 
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/20220317/cb20c6ef/attachment.htm>


More information about the webkit-unassigned mailing list