WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
103919
Flex item auto margins in the cross direction should safe center
https://bugs.webkit.org/show_bug.cgi?id=103919
Summary
Flex item auto margins in the cross direction should safe center
Tony Chang
Reported
2012-12-03 13:08:29 PST
See example in the URL. setting the margin to auto shouldn't overflow out the top of the flexbox.
Attachments
Patch
(4.38 KB, patch)
2012-12-04 08:24 PST
,
Carlos Garcia Campos
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Tony Chang
Comment 1
2012-12-03 13:08:47 PST
This would be a pretty easy bug to fix.
Carlos Garcia Campos
Comment 2
2012-12-04 08:24:00 PST
Created
attachment 177488
[details]
Patch
Ojan Vafai
Comment 3
2012-12-04 09:52:21 PST
Comment on
attachment 177488
[details]
Patch Can you also add asserts in updateAutoMarginsInCrossAxis and updateAutoMarginsInMainAxis that the LayoutUnit passed in is >= 0?
Tony Chang
Comment 4
2012-12-04 13:40:58 PST
Comment on
attachment 177488
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=177488&action=review
> LayoutTests/css3/flexbox/flex-flow-auto-margins-no-available-space.html:4 > +<style> > +body {
Please use resources/flexbox.css and the styles defined there when possible. This makes the tests runnable in Firefox and makes it easy to add other vendor prefixes to the tests.
Carlos Garcia Campos
Comment 5
2012-12-05 02:26:43 PST
Comment on
attachment 177488
[details]
Patch Committed
r136660
: <
http://trac.webkit.org/changeset/136660
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug