[Webkit-unassigned] [Bug 237732] New: [css-grid] Grid contents sometimes layout with the wrong width

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 10 13:46:38 PST 2022


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

            Bug ID: 237732
           Summary: [css-grid] Grid contents sometimes layout with the
                    wrong width
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
               URL: https://www.economist.com/the-economist-explains/2022/
                    02/03/how-apples-privacy-push-cost-meta-10bn
                OS: Unspecified
            Status: NEW
          Keywords: InRadar
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mattwoodrow at apple.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    webkit-bug-importer at group.apple.com, zalan at apple.com

<rdar://88512506>

Resizing the browser on the provided URL sometimes lays out the main article text to the wrong width, where it doesn't line wrap at all and just extends off the right side of the page.

It looks like we call RenderGrid::computeIntrinsicLogicalWidths and that results in us calling layoutIfNeeded on the child RenderBlock with an estimated width (which turns out to be wrong).

Now that we've mutated the child and laid it out incorrectly, nothing marks the RenderGrid itself as needing layout, so we never do a proper layout with the final grid column sizes to fix this again.

The bug happens intermittently, since anytime we do a full layout of the grid, we also layout the children correctly.

-- 
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/20220310/b718accf/attachment.htm>


More information about the webkit-unassigned mailing list