[Webkit-unassigned] [Bug 112047] -webkit-align-items: center does not work as expected with overflow: auto/scroll

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 11 13:22:50 PDT 2013


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


Timothy Hatcher <timothy at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|-webkit-align-items:        |-webkit-align-items: center
                   |center/flex-end does not    |does not work as expected
                   |work as expected with       |with overflow: auto/scroll
                   |overflow: auto/scroll       |




--- Comment #11 from Timothy Hatcher <timothy at apple.com>  2013-03-11 13:25:15 PST ---
The use case is to just center an image in the container when it is small. When it is large overflow where you can still see the whole image by scrolling down.

Using margin: auto does work, so I'm fine with that.

If the spec isn't changes then -webkit-align-items: center causing dead whitespace should be fixed.

Right now it is weird you can only see the whole image if you use flex-start or stretch. The other keywords can hide content off the top and still allow you to scroll to see content at the end.

Thinking about it logically, I think flex-end should set the scroll position and force you to scroll up to see the overflow. Same could be said for center, force the scroll position to be centered and you can scroll up or down in the overflow. The initial visual display is just a clipped version of the overflow: visible result. Does that make sense? I'm not sure if that would fly with the spec editors though…

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list