[Webkit-unassigned] [Bug 218330] New: Caption of table causes offset on sticky positioned table elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 29 04:36:51 PDT 2020


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

            Bug ID: 218330
           Summary: Caption of table causes offset on sticky positioned
                    table elements
           Product: WebKit
           Version: Safari 14
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: hartman.wiki at gmail.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

Created attachment 412633

  --> https://bugs.webkit.org/attachment.cgi?id=412633&action=review

testcase with and without caption

When you use position:sticky; top:0; on a table element, you expect this element to stick to the top of the overflowing frame. This usually works, unless you also have a <caption> element on your table. The caption elements have rather unique box model behavior, which introduces an offset that the sticky headers accidentally use as well.

I'm not entirely sure if this is per the current specification or not. I do know that it doesn't match my expectations, and it doesn't match the behavior of Chrome and Firefox.

I have included a reproduction of this problem showing behavior with and without caption element in a table.

-- 
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/20201029/8e56fa67/attachment.htm>


More information about the webkit-unassigned mailing list