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

Issue 2080643002: [css-grid] Implement repeat(auto-fit) (Closed)

Created:
4 years, 6 months ago by svillar
Modified:
4 years, 5 months ago
CC:
chromium-reviews, jfernandez, szager+layoutwatch_chromium.org, blink-reviews-style_chromium.org, zoltan1, svillar, blink-reviews-css, pdr+renderingwatchlist_chromium.org, leviw+renderwatch, dglazkov+blink, apavlov+blink_chromium.org, jchaffraix+rendering, darktears, blink-reviews, eae+blinkwatch, blink-reviews-layout_chromium.org, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[css-grid] Implement repeat(auto-fit) The auto-fit keyword works exactly as the already implemented auto-fill except that all empty tracks collapse (became 0px). Absolutely positioned items do not participate on the layout of the grid so they are not considered (a grid with only absolutely positioned items is considered an empty grid). Whenever a track collapses the gutters on either side do also collapse. When a collapsed track’s gutters collapse, they coincide exactly. If one side of a collapsed track does not have a gutter then collapsing its gutters results in no gutter on either “side” of the collapsed track. Uncommented the auto-fit cases from Mozilla tests. They have to be adapted as the reftest machinery requires all the content to be rendered in the original 800x600 viewport. BUG=589460 Committed: https://crrev.com/80ac577b86f1dc0b64339f6f6f566d163ee9215c Cr-Commit-Position: refs/heads/master@{#405849}

Patch Set 1 #

Patch Set 2 : Build (debug) fix #

Total comments: 28

Patch Set 3 : Review fixes #

Patch Set 4 : Collapse empty tracks (do not drop them) #

Total comments: 47

Patch Set 5 : Patch for landing #

Patch Set 6 : New tests. Improved comments #

Patch Set 7 : Rebased patch for landing #

Patch Set 8 : Patch for landing v2 #

Patch Set 9 : Patch for landing v3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1167 lines, -1690 lines) Patch
A + third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fit-columns.html View 1 2 3 4 5 8 chunks +12 lines, -12 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-auto-fit-rows.html View 1 2 3 4 5 8 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-auto-repeat-get-set.html View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-element-auto-repeat-get-set-expected.txt View 1 2 3 1 chunk +14 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-only-abspos-item-computed-style-crash.html View 1 2 3 3 chunks +16 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-only-abspos-item-computed-style-crash-expected.txt View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-positioned-items-padding.html View 1 2 3 4 3 chunks +43 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-template-columns-rows-computed-style-gaps-content-alignment.html View 1 2 3 4 3 chunks +43 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-template-columns-rows-computed-style-gaps-content-alignment-expected.txt View 1 2 3 1 chunk +112 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-001.html View 2 chunks +52 lines, -53 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-001-expected.html View 2 chunks +57 lines, -54 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-002.html View 1 chunk +51 lines, -52 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-002-expected.html View 1 chunk +51 lines, -51 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-003.html View 2 chunks +56 lines, -52 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-003-expected.html View 2 chunks +57 lines, -51 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-004.html View 2 chunks +56 lines, -52 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-004-expected.html View 2 chunks +57 lines, -51 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-005.html View 1 chunk +0 lines, -378 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-005-expected.html View 1 2 1 chunk +0 lines, -384 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-005-part-1.html View 4 chunks +4 lines, -147 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-005-part-1-expected.html View 1 2 3 chunks +4 lines, -144 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-005-part-2.html View 4 chunks +6 lines, -148 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-005-part-2-expected.html View 1 2 3 1 chunk +244 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 2 3 4 5 6 1 chunk +8 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.h View 1 2 3 4 5 6 7 8 5 chunks +14 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutGrid.cpp View 1 2 3 4 5 6 7 8 19 chunks +185 lines, -18 lines 0 comments Download

Messages

Total messages: 39 (15 generated)
svillar
sending out for review
4 years, 6 months ago (2016-06-20 10:15:53 UTC) #3
jfernandez
lgtm https://codereview.chromium.org/2080643002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2080643002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode1329 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1329: if (!emptyTracksCounter) Isn't this name a bit confusing ...
4 years, 6 months ago (2016-06-21 07:40:27 UTC) #4
jfernandez
lgtm
4 years, 6 months ago (2016-06-21 07:40:30 UTC) #5
Manuel Rego
Nice patch but I've some questions as it's quite complex. BTW, why you didn't add ...
4 years, 6 months ago (2016-06-21 21:57:38 UTC) #6
svillar
I still need an OWNER for the style/ changes, @rune @timloh ?
4 years, 6 months ago (2016-06-23 07:37:51 UTC) #9
svillar
Thanks for both reviews. https://codereview.chromium.org/2080643002/diff/20001/third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-005-expected.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-005-expected.html (right): https://codereview.chromium.org/2080643002/diff/20001/third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-005-expected.html#newcode1 third_party/WebKit/LayoutTests/fast/css-grid-layout/mozilla/grid-repeat-auto-fill-fit-005-expected.html:1: <!DOCTYPE HTML> On 2016/06/21 21:57:37, ...
4 years, 6 months ago (2016-06-23 08:09:43 UTC) #10
svillar
https://codereview.chromium.org/2080643002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp File third_party/WebKit/Source/core/layout/LayoutGrid.cpp (right): https://codereview.chromium.org/2080643002/diff/20001/third_party/WebKit/Source/core/layout/LayoutGrid.cpp#newcode1329 third_party/WebKit/Source/core/layout/LayoutGrid.cpp:1329: if (!emptyTracksCounter) On 2016/06/21 21:57:37, Manuel Rego wrote: > ...
4 years, 6 months ago (2016-06-23 08:19:14 UTC) #11
Manuel Rego
Ok, thanks for the info. Non-owner LGTM. You missed my previous question about tests: > ...
4 years, 5 months ago (2016-06-27 05:59:37 UTC) #12
eae
+timloh for style changes
4 years, 5 months ago (2016-06-27 16:03:25 UTC) #13
svillar
New version of the patch that matches the latest spec. Instead of dropping tracks we ...
4 years, 5 months ago (2016-07-07 12:06:07 UTC) #14
Manuel Rego
Wow, this is getting really complex. I've several inline comments but the patch looks great! ...
4 years, 5 months ago (2016-07-08 11:12:35 UTC) #15
svillar
Thanks for the detailed review! https://codereview.chromium.org/2080643002/diff/60001/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-template-columns-rows-computed-style-gaps-content-alignment.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-template-columns-rows-computed-style-gaps-content-alignment.html (right): https://codereview.chromium.org/2080643002/diff/60001/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-template-columns-rows-computed-style-gaps-content-alignment.html#newcode23 third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-template-columns-rows-computed-style-gaps-content-alignment.html:23: .item { background: gray} ...
4 years, 5 months ago (2016-07-11 12:46:19 UTC) #16
eae
OK LGTM
4 years, 5 months ago (2016-07-12 17:39:46 UTC) #17
svillar
Addressed review comments. Fixed a bug with gaps and positioned items (with new tests). The ...
4 years, 5 months ago (2016-07-13 12:08:13 UTC) #18
brownvictoria1986
Ratchet as fucks scandals bitches
4 years, 5 months ago (2016-07-14 08:22:27 UTC) #19
Manuel Rego
The last version looks good to me too. Some minor comments inline. https://codereview.chromium.org/2080643002/diff/60001/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-template-columns-rows-computed-style-gaps-content-alignment.html File third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-template-columns-rows-computed-style-gaps-content-alignment.html ...
4 years, 5 months ago (2016-07-14 09:10:51 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2080643002/120001
4 years, 5 months ago (2016-07-14 10:10:57 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/201460)
4 years, 5 months ago (2016-07-14 10:20:57 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2080643002/140001
4 years, 5 months ago (2016-07-15 09:33:14 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/36368) ios-device-gn on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 5 months ago (2016-07-15 09:35:01 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2080643002/160001
4 years, 5 months ago (2016-07-15 19:00:28 UTC) #34
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 5 months ago (2016-07-15 20:44:42 UTC) #36
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-15 20:45:03 UTC) #37
commit-bot: I haz the power
4 years, 5 months ago (2016-07-15 20:46:11 UTC) #39
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/80ac577b86f1dc0b64339f6f6f566d163ee9215c
Cr-Commit-Position: refs/heads/master@{#405849}

Powered by Google App Engine
This is Rietveld 408576698