[Webkit-unassigned] [Bug 269197] New: Nested multi-columns are laid out incorrectly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 12 08:29:03 PST 2024


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

            Bug ID: 269197
           Summary: Nested multi-columns are laid out incorrectly
           Product: WebKit
           Version: Safari 17
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bya at 180g.co
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

Created attachment 469821

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

HTML exhibiting the bug (numbers out of order)

In the attached HTML, I have two nested multi-column layouts: the outer sets a specific `column-width` while the inner one sets the `column-count` to 2.

Without the inner multi-column layout, the numbers appear in order: 1 2 3 4.
With the inner multi-column layout (as attached), the numbers appear out of order: 1 3 2 4.

In Safari, it seems that the inner multi-column layout is not respecting the outer one. The inner multi-column layout appears to be laid out first – into 2 long columns - which is then split up by the outer multi-column layout into a number of different columns of a specific width. This renders correctly in Chrome and Firefox, however.

To submit a reduced case, I’ve included very little text. However, that makes it a little difficult to see the motivation, which is to create a layout like the index in a book. The outer multi-column layout would represent the pages, and the inner one would represent the two columns of text on each page. This is perhaps easier to visualize with more text. To see that, remove all the comments from the attached HTML. Then, in each gray box, we’d expect to see an ordered sequence: 1-6 in the first box, 7-12 in the second.

-- 
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/20240212/76c9ad2a/attachment.htm>


More information about the webkit-unassigned mailing list