Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(383)

Issue 1314703006: Flex grow wrongly calculated for value between 0 and 1 (Closed)

Created:
5 years, 3 months ago by ashlin.j
Modified:
5 years, 2 months ago
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Flex grow wrongly calculated for value between 0 and 1 When flex grow value for a flex item is set between 0 and 1, the extra space to flex for the flex item is wrongly calculated. If the value of totalFlexGrow is less than 1, then the available space would be totalFlexGrow times the available space. And then this space is distributed to all the flex items within the flex line. The spec describing it is: http://dev.w3.org/csswg/css-flexbox-1/#resolve-flexible-lengths ...specifically this line "If the sum of the unfrozen flex items’ flex factors is less than one, multiply the initial free space by this sum." BUG=480752

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 24

Patch Set 4 : #

Patch Set 5 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -0 lines) Patch
A LayoutTests/css3/flexbox/flex-grow-less-than-one.html View 1 2 3 4 1 chunk +74 lines, -0 lines 0 comments Download
A + LayoutTests/css3/flexbox/flex-grow-less-than-one-expected.txt View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/layout/LayoutFlexibleBox.cpp View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 30 (10 generated)
harpreet.sk
Qucik Review: Add more test cases in layout test checking for column flexbox and for ...
5 years, 3 months ago (2015-09-07 06:10:16 UTC) #2
ashlin.j
On 2015/09/07 06:10:16, harpreet.sk wrote: > Qucik Review: Add more test cases in layout test ...
5 years, 3 months ago (2015-09-07 10:03:29 UTC) #3
harpreet.sk
https://codereview.chromium.org/1314703006/diff/40001/LayoutTests/css3/flexbox/flex-grow-less-than-one.html File LayoutTests/css3/flexbox/flex-grow-less-than-one.html (right): https://codereview.chromium.org/1314703006/diff/40001/LayoutTests/css3/flexbox/flex-grow-less-than-one.html#newcode4 LayoutTests/css3/flexbox/flex-grow-less-than-one.html:4: .parent { Rename it to something more appropriate something ...
5 years, 3 months ago (2015-09-07 13:45:45 UTC) #4
ashlin.j
On 2015/09/07 13:45:45, harpreet.sk wrote: > https://codereview.chromium.org/1314703006/diff/40001/LayoutTests/css3/flexbox/flex-grow-less-than-one.html > File LayoutTests/css3/flexbox/flex-grow-less-than-one.html (right): > > https://codereview.chromium.org/1314703006/diff/40001/LayoutTests/css3/flexbox/flex-grow-less-than-one.html#newcode4 > ...
5 years, 3 months ago (2015-09-09 11:12:57 UTC) #5
ashlin.j
https://codereview.chromium.org/1314703006/diff/20001/LayoutTests/css3/flexbox/flex-grow-less-than-one.html File LayoutTests/css3/flexbox/flex-grow-less-than-one.html (right): https://codereview.chromium.org/1314703006/diff/20001/LayoutTests/css3/flexbox/flex-grow-less-than-one.html#newcode2 LayoutTests/css3/flexbox/flex-grow-less-than-one.html:2: <html> On 2015/09/07 06:10:16, harpreet.sk wrote: > We generally ...
5 years, 3 months ago (2015-09-21 06:34:00 UTC) #8
ashlin.j
Please take a look.
5 years, 3 months ago (2015-09-21 12:14:14 UTC) #10
cbiesinger
lgtm
5 years, 3 months ago (2015-09-22 21:04:55 UTC) #11
cbiesinger
Note that this should also apply to shrinking per https://lists.w3.org/Archives/Public/www-style/2015Sep/0225.html, but that can be a ...
5 years, 3 months ago (2015-09-22 23:37:16 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1314703006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1314703006/80001
5 years, 3 months ago (2015-09-23 05:38:35 UTC) #14
commit-bot: I haz the power
Failed to commit the patch. Adding LayoutTests/css3/flexbox/flex-grow-less-than-one-expected.txt Adding LayoutTests/css3/flexbox/flex-grow-less-than-one.html Sending Source/core/layout/LayoutFlexibleBox.cpp Transmitting file data ..svn: ...
5 years, 3 months ago (2015-09-23 18:01:20 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1314703006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1314703006/80001
5 years, 3 months ago (2015-09-24 11:35:46 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/101812) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 3 months ago (2015-09-24 11:36:33 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1314703006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1314703006/80001
5 years, 2 months ago (2015-09-28 13:34:44 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_android/builds/59274) linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 2 months ago (2015-09-28 13:35:31 UTC) #24
cbiesinger
You're going to have to recreate this codereview with a new checkout, now that blink ...
5 years, 2 months ago (2015-09-28 16:26:47 UTC) #25
ashlin.j
On 2015/09/28 16:26:47, cbiesinger wrote: > You're going to have to recreate this codereview with ...
5 years, 2 months ago (2015-09-30 09:38:06 UTC) #26
ashlin.j
On 2015/09/28 16:26:47, cbiesinger wrote: > You're going to have to recreate this codereview with ...
5 years, 2 months ago (2015-09-30 09:38:08 UTC) #27
ashlin.j
On 2015/09/28 16:26:47, cbiesinger wrote: > You're going to have to recreate this codereview with ...
5 years, 2 months ago (2015-09-30 09:38:08 UTC) #28
ashlin.j
On 2015/09/22 23:37:16, cbiesinger wrote: > Note that this should also apply to shrinking per ...
5 years, 2 months ago (2015-09-30 09:39:07 UTC) #29
cbiesinger
5 years, 2 months ago (2015-10-16 22:07:56 UTC) #30
I'll close this change because it landed separately as
https://codereview.chromium.org/1375163002

Powered by Google App Engine
This is Rietveld 408576698