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

Issue 60633008: [CSS Grid Layout] Percentages of indefinite sizes should compute to "auto" (Closed)

Created:
7 years, 1 month ago by svillar
Modified:
7 years ago
CC:
blink-reviews, bemjb+rendering_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[CSS Grid Layout] Percentages of indefinite sizes should compute to "auto" According to the spec, http://dev.w3.org/csswg/css-grid/#valuedef-percentage, that's what we have to do. We were not considering this case as something special in the current code. Added several new test cases including some that verify that tracks are sized as per their children (following "auto" behaviour). BUG=313215 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164062

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use isIntrinsic() in the check #

Total comments: 4

Patch Set 3 : Use isIntrinsicOrAuto() + tests updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -5 lines) Patch
M LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set.html View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set-expected.txt View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set-multiple.html View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set-multiple-expected.txt View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-element-repeat-get-set.html View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/grid-element-repeat-get-set-expected.txt View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/named-grid-line-get-set.html View 1 2 3 chunks +6 lines, -4 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/named-grid-line-get-set-expected.txt View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/resources/grid.css View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/resources/grid-columns-rows-get-set.js View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/css-grid-layout/resources/grid-columns-rows-get-set-multiple.js View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderGrid.cpp View 1 2 1 chunk +11 lines, -1 line 0 comments Download
M Source/core/rendering/style/GridTrackSize.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
svillar
7 years, 1 month ago (2013-11-06 10:28:15 UTC) #1
Julien - ping for review
+ojan: In case we have an API that returns if we have an "indefinite size" ...
7 years, 1 month ago (2013-11-07 18:18:25 UTC) #2
svillar
Thanks for the review! Waiting for Ojan's input https://codereview.chromium.org/60633008/diff/1/LayoutTests/fast/css-grid-layout/resources/grid.css File LayoutTests/fast/css-grid-layout/resources/grid.css (right): https://codereview.chromium.org/60633008/diff/1/LayoutTests/fast/css-grid-layout/resources/grid.css#newcode1 LayoutTests/fast/css-grid-layout/resources/grid.css:1: .grid, ...
7 years, 1 month ago (2013-11-07 18:44:29 UTC) #3
ojan
> +ojan: In case we have an API that returns if we have an "indefinite ...
7 years, 1 month ago (2013-11-08 20:43:02 UTC) #4
svillar
7 years ago (2013-12-10 18:39:22 UTC) #5
ojan
https://codereview.chromium.org/60633008/diff/90001/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/60633008/diff/90001/Source/core/rendering/RenderGrid.cpp#newcode495 Source/core/rendering/RenderGrid.cpp:495: if (logicalSize.isIntrinsic()) { Should this be isInstrinsicOrAuto? Also, what ...
7 years ago (2013-12-10 22:53:25 UTC) #6
svillar
https://codereview.chromium.org/60633008/diff/90001/Source/core/rendering/RenderGrid.cpp File Source/core/rendering/RenderGrid.cpp (right): https://codereview.chromium.org/60633008/diff/90001/Source/core/rendering/RenderGrid.cpp#newcode495 Source/core/rendering/RenderGrid.cpp:495: if (logicalSize.isIntrinsic()) { On 2013/12/10 22:53:26, ojan wrote: > ...
7 years ago (2013-12-16 17:46:50 UTC) #7
ojan
lgtm
7 years ago (2013-12-18 01:01:09 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/svillar@igalia.com/60633008/120001
7 years ago (2013-12-18 01:01:45 UTC) #9
commit-bot: I haz the power
7 years ago (2013-12-18 05:10:00 UTC) #10
Message was sent while issue was closed.
Change committed as 164062

Powered by Google App Engine
This is Rietveld 408576698