[Webkit-unassigned] [Bug 179959] New: [css-grid] Centered auto margin not recalculated when overflow changes on display: grid item

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 22 16:39:56 PST 2017


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

            Bug ID: 179959
           Summary: [css-grid] Centered auto margin not recalculated when
                    overflow changes on display: grid item
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jfernandez at igalia.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

Created attachment 327473

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

Test case to reproduce the bug

Steps to reproduce the problem:
With an element that is `display: grid` and has a scrollbar, and an element that is `margin: auto` for left & right

1. On grid element, change overflow to `hidden`
2. Wait at least 1 frame draw
3. Change grid element overflow back to `auto`

Margin auto should be recalculated and there shouldn't be horizontal overflow if none existed before. However, The element with margin auto retains it's previous size and causes a horizontal scrollbar to appear, even if one did not exist before.

-- 
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/20171123/406918dc/attachment-0001.html>


More information about the webkit-unassigned mailing list