WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
75782
Implement flex-align
https://bugs.webkit.org/show_bug.cgi?id=75782
Summary
Implement flex-align
Ojan Vafai
Reported
2012-01-07 12:55:56 PST
http://dev.w3.org/csswg/css3-flexbox/#flex-align
Attachments
Patch
(33.96 KB, patch)
2012-01-12 15:42 PST
,
Ojan Vafai
no flags
Details
Formatted Diff
Diff
Patch
(37.13 KB, patch)
2012-01-12 19:03 PST
,
Ojan Vafai
no flags
Details
Formatted Diff
Diff
Patch
(45.40 KB, patch)
2012-01-13 18:58 PST
,
Ojan Vafai
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Ojan Vafai
Comment 1
2012-01-12 15:42:46 PST
Created
attachment 122322
[details]
Patch
Tony Chang
Comment 2
2012-01-12 15:56:53 PST
Comment on
attachment 122322
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=122322&action=review
r- because of missing test cases.
> Source/WebCore/rendering/RenderBox.cpp:1803 > + EFlexAlign align = style()->flexItemAlign(); > + if (align == AlignAuto) > + align = parent()->style()->flexAlign(); > + if (align != AlignStretch) > + return true;
Nit: I would probably just do "if (itemalign == stretch || (itemalign == auto && parent->itemalign == stretch))". *shrug*
> Source/WebCore/rendering/RenderFlexibleBox.cpp:621 > +static EFlexAlign flexAlign(RenderBox* flexItem)
Nit: Maybe name it flexAlignForChild?
> LayoutTests/css3/flexbox/flex-align.html:124 > +</div> > +
It would be nice to have a test with flex-align set and flex-item-align not set.
> LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt:147 > --webkit-flex-item-align: stretch; > +-webkit-flex-align: stretch;
There are port specific results for these tests too, right?
Ojan Vafai
Comment 3
2012-01-12 19:03:51 PST
Created
attachment 122359
[details]
Patch
Tony Chang
Comment 4
2012-01-12 19:11:16 PST
Please make sure to update all the other platform results before landing.
WebKit Review Bot
Comment 5
2012-01-12 20:04:15 PST
Comment on
attachment 122359
[details]
Patch
Attachment 122359
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/11227415
New failing tests: svg/css/getComputedStyle-basic.xhtml css3/flexbox/flex-align.html fast/css/getComputedStyle/computed-style.html fast/css/getComputedStyle/computed-style-without-renderer.html
Tony Chang
Comment 6
2012-01-13 10:03:27 PST
(In reply to
comment #5
)
> (From update of
attachment 122359
[details]
) >
Attachment 122359
[details]
did not pass chromium-ews (chromium-xvfb): > Output:
http://queues.webkit.org/results/11227415
> > New failing tests: > svg/css/getComputedStyle-basic.xhtml > css3/flexbox/flex-align.html > fast/css/getComputedStyle/computed-style.html > fast/css/getComputedStyle/computed-style-without-renderer.html
css3/flexbox/flex-align.html failing is a bit suspicious.
Ojan Vafai
Comment 7
2012-01-13 12:43:45 PST
Committed
r104972
: <
http://trac.webkit.org/changeset/104972
>
Ojan Vafai
Comment 8
2012-01-13 14:00:43 PST
Reverted
r104972
for reason: Broke some tests Committed
r104985
: <
http://trac.webkit.org/changeset/104985
>
Ojan Vafai
Comment 9
2012-01-13 16:11:56 PST
Antti, Hyatt: Would one of you mind taking a quick look at the CSSComputedStyleDeclaration changes in this patch and letting me know if I'm doing something obviously wrong? It's just two lines (the CSSPropertyWebkitFlexItemAlign changes). Hmm. The following tests crashed on chromium win and linux (they're not run on chromium-mac): http/tests/inspector/extensions-ignore-cache.html inspector/styles/styles-new-API.html inspector/styles/parse-utf8-bom.html inspector/styles/media-queries.html It's strange they didn't crash on the chromium EWS. Here's the stack: WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue() [0xb8e289] WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue() [0xb9807e] WebCore::CSSComputedStyleDeclaration::getPropertyValue() [0xb88402] WebCore::CSSStyleDeclaration::getPropertyValue() [0xbd011f] WebCore::InspectorStyle::populateAllProperties() [0xeb01aa] WebCore::InspectorStyle::buildArrayForComputedStyle() [0xeb09a3] WebCore::InspectorCSSAgent::getComputedStyleForNode() [0xea60fa] WebCore::InspectorBackendDispatcher::CSS_getComputedStyleForNode() [0x11f6c91] WebCore::InspectorBackendDispatcher::dispatch() [0x1200e9a] WebKit::WebDevToolsAgentImpl::dispatchOnInspectorBackend() [0x4a0c8f]
Ojan Vafai
Comment 10
2012-01-13 18:58:41 PST
Created
attachment 122529
[details]
Patch
Ojan Vafai
Comment 11
2012-01-13 19:13:51 PST
Committed
r105015
: <
http://trac.webkit.org/changeset/105015
> Took out the special CSSComputedStyleDeclaration behavior since it's almost certainly what caused the crash. Will fix it in
bug 76326
.
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