WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 77385
flex-pack:center and flex-item-align:center should do true centering
https://bugs.webkit.org/show_bug.cgi?id=77385
Summary
flex-pack:center and flex-item-align:center should do true centering
Ojan Vafai
Reported
2012-01-30 16:47:46 PST
http://dev.w3.org/csswg/css3-flexbox/#flex-align
: "If the cross size of the flexbox is less than than that of the flexbox item, it will overflow equally in both directions."
http://dev.w3.org/csswg/css3-flexbox/#flex-pack
: "If the leftover free-space is negative, the flexbox items will overflow equally in both directions."
http://plexode.com/eval3/#ht=%3Cdiv%20style%3D%22display%3A-webkit-flexbox%3B%20-webkit-flex-pack%3Acenter%3B%20border%3A%202px%20solid%20blue%3B%20width%3A%2010px%3B%22%3E%0A%20%20%20%20%3Cdiv%20style%3D%22background-color%3Ared%22%3Efoo%3C%2Fdiv%3E%0A%3C%2Fdiv%3E&ohh=1&ohj=1&jt=&ojh=1&ojj=1&ms=100&oth=0&otj=0&cex=1
Attachments
Patch
(13.39 KB, patch)
2012-02-10 12:21 PST
,
Ojan Vafai
tony
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Ojan Vafai
Comment 1
2012-02-10 12:21:33 PST
Created
attachment 126552
[details]
Patch
Tony Chang
Comment 2
2012-02-10 12:31:10 PST
Comment on
attachment 126552
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=126552&action=review
If you wanted to be thorough, you could add writing mode tests.
> Source/WebCore/ChangeLog:9 > + Also, removed passing totalPositiveFlexibility around. We don't > + need to know about positive/negative flex once we run the flexing algorithm.
I remember why we had this. It was when you could flex margins. Maybe mention that in the ChangeLog.
Ojan Vafai
Comment 3
2012-02-10 15:01:52 PST
Committed
r107446
: <
http://trac.webkit.org/changeset/107446
>
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