|
[css-grid] Implement grid gutters
Authors can now specify the gutters between grid lines, i.e., the space
between two consecutive grid lines. This can be done using the new
'grid-column-gap 'and 'grid-row-gap' properties (or the 'grid-gap'
shorthand).
From the track sizing algorithm POV, gutters are treated as fixed size
columns. The primary consequence is that grids are enlarged (depending on
the number of tracks). Gutters also affect the sizing of content-sized
tracks and fr tracks as long as the grid have spanning items. Those tracks
will become smaller as gutters will consume part of the item's size, so the
tracks won't need to grow as much as they used to.
Added several new test cases to verify that gutters are properly considered
when sizing and also to check that they do not modify the current behavior.
As many existing tests were reused I took the chance to refactor some
testing code related to alignment so that it could be reused by many
different tests.
Committed: https://crrev.com/ad570a7dcd24b813e0dc2400c0bf080caf30a0ce
Cr-Commit-Position: refs/heads/master@{#352839}
Total comments: 28
Total comments: 5
Total comments: 17
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1060 lines, -295 lines) |
Patch |
 |
M |
third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align.html
|
View
|
1
2
3
|
2 chunks |
+1 line, -48 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align-content.html
|
View
|
1
2
3
|
2 chunks |
+1 line, -36 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align-justify-margin-border-padding.html
|
View
|
1
2
3
|
2 chunks |
+1 line, -29 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align-justify-margin-border-padding-vertical-lr.html
|
View
|
1
2
3
|
2 chunks |
+1 line, -30 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-align-justify-margin-border-padding-vertical-rl.html
|
View
|
1
2
3
|
2 chunks |
+1 line, -30 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-gutters-and-alignment.html
|
View
|
1
2
3
|
1 chunk |
+297 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-gutters-and-alignment-expected.txt
|
View
|
1
2
3
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-gutters-and-flex-content.html
|
View
|
1
2
3
|
1 chunk |
+91 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-gutters-and-flex-content-expected.txt
|
View
|
1
2
3
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-gutters-and-tracks.html
|
View
|
1
2
3
|
1 chunk |
+139 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-gutters-and-tracks-expected.txt
|
View
|
1
2
3
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-gutters-get-set.html
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+93 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-gutters-get-set-expected.txt
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-justify-content.html
|
View
|
1
2
3
|
2 chunks |
+1 line, -35 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-justify-content-distribution-vertical-lr.html
|
View
|
1
2
3
|
2 chunks |
+1 line, -39 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-justify-content-distribution-vertical-rl.html
|
View
|
1
2
3
|
2 chunks |
+1 line, -39 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/css-grid-layout/resources/grid.css
|
View
|
1
2
3
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/WebKit/LayoutTests/fast/css-grid-layout/resources/grid-alignment.css
|
View
|
1
2
3
|
1 chunk |
+74 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/css-grid-layout/resources/grid-definitions-parsing-utils.js
|
View
|
1
2
3
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-grid-layout.html
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-grid-layout-expected.txt
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-listing-expected.txt
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-listing-expected.txt
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/svg/css/getComputedStyle-listing-expected.txt
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/LayoutTests/webexposed/css-properties-as-js-properties-expected.txt
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/CSSProperties.in
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+13 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/StylePropertySerializer.cpp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/parser/CSSParserFastPaths.cpp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+43 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/UseCounter.cpp
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/layout/LayoutGrid.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/layout/LayoutGrid.cpp
|
View
|
1
2
3
4
5
6
7
8
|
11 chunks |
+42 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/style/ComputedStyle.h
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/style/StyleGridData.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/style/StyleGridData.cpp
|
View
|
1
2
3
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
Total messages: 41 (13 generated)
|