[Webkit-unassigned] [Bug 282934] New: list-item container-type

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 11 08:53:32 PST 2024


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

            Bug ID: 282934
           Summary: list-item container-type
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: doug at wollison.net
                CC: koivisto at iki.fi

It appears that containment and counters don't seem to play nice together.

I have a list of items, and for design reasons I need to render the counter as a pseudo element on the item within. When I apply a container-type to the list items though, it breaks the counter handling. This is regardless of if I use a custom counter or the native list-item one.

Codepen demonstrating the issue: https://codepen.io/dougwollison/pen/GRVPxvo

If I had to hazard a guess, the containment seems to undo/revert counter-increment, and possibly trigger a counter-reset as well. You can see that my custom counter example, which increments on the .card items rather than list items, all show 1.

-- 
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/20241111/ed8b8a38/attachment.htm>


More information about the webkit-unassigned mailing list