[Webkit-unassigned] [Bug 246216] New: Invalid counters after contain: style

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 7 07:54:41 PDT 2022


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

            Bug ID: 246216
           Summary: Invalid counters after contain: style
           Product: WebKit
           Version: Safari 16
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: niedziolek at hotmail.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

Example: https://codepen.io/NiedziolkaMichal/pen/abGaeBg

Currently contain: style correctly starts independent counter value for #contained element, because of which "Contained Child 1" has "1." next to it instead of "3.".
Element "Child 3" which is located outside of contained element, should not have been inpacted by contained element, so it's counter value should be "3". On Chrome and Firefox example prints:

1. Child 1
2. Child 2
   1. Contained Child 1
3. Child 3


Second issue is that changing value of "contain" property doesn't affect counter values. That's why buttons in codepen example doesn't work. On Firefox they work fine, while on Chrome they also doesn't work and I filed issue in the too: https://bugs.chromium.org/p/chromium/issues/detail?id=1372435

-- 
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/20221007/6fd36c7a/attachment.htm>


More information about the webkit-unassigned mailing list