|
[css-grid] Fix behavior of positioned items without specific dimensions
Currently positioned items that doesn't have specific dimensions
are not properly sized. This patch fixes the issues with them.
The patch removes the ExtraInline|BlockOffsets from LayoutBox,
so now LayouGrid is responsible to setting the location of the positioned item.
This will be useful to add alignment support for positioned items later.
It also removes grid specific logic from LayoutBox.
LayoutBox::ComputeInlineStaticDistance() was modified
as it got confused because the container of the positioned grid items
is not the grid container, but the grid area. That caused wrong values
when resolving "auto" in both left and right offset properties.
Note that after this patch we match Firefox behavior on these cases.
BUG= 618996
TEST=fast/css-grid-layout/positioned-grid-items-sizing.html
TEST=external/wpt/css/css-grid-1/abspos/
Review-Url: https://codereview.chromium.org/2665133003
Cr-Commit-Position: refs/heads/master@{#470063}
Committed: https://chromium.googlesource.com/chromium/src/+/e48a88ace117744e50c9f9769b40b9d702f286bf
Total comments: 12
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1747 lines, -58 lines) |
Patch |
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-001.html
|
View
|
1
2
|
1 chunk |
+57 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-001-ref.html
|
View
|
1
2
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-002.html
|
View
|
1
2
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-003.html
|
View
|
1
2
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-004.html
|
View
|
1
2
|
1 chunk |
+59 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-005.html
|
View
|
1
2
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-005-ref.html
|
View
|
1
2
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-006.html
|
View
|
1
2
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-006-ref.html
|
View
|
1
2
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-007.html
|
View
|
1
2
|
1 chunk |
+59 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-007-ref.html
|
View
|
1
2
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-008.html
|
View
|
1
2
|
1 chunk |
+59 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-008-ref.html
|
View
|
1
2
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-009.html
|
View
|
1
2
|
1 chunk |
+61 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-009-ref.html
|
View
|
1
2
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-010.html
|
View
|
1
2
|
1 chunk |
+59 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-011.html
|
View
|
1
2
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-011-ref.html
|
View
|
1
2
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-012.html
|
View
|
1
2
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-012-ref.html
|
View
|
1
2
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-013.html
|
View
|
1
2
|
1 chunk |
+59 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-013-ref.html
|
View
|
1
2
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-014.html
|
View
|
1
2
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-014-ref.html
|
View
|
1
2
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-015.html
|
View
|
1
2
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-015-ref.html
|
View
|
1
2
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-016.html
|
View
|
1
2
|
1 chunk |
+59 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-016-ref.html
|
View
|
1
2
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-017.html
|
View
|
1
2
|
1 chunk |
+61 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/external/wpt/css/css-grid-1/abspos/positioned-grid-items-017-ref.html
|
View
|
1
2
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/fast/css-grid-layout/positioned-grid-items-sizing.html
|
View
|
|
1 chunk |
+70 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/fast/css-grid-layout/positioned-grid-items-sizing-expected.html
|
View
|
|
1 chunk |
+64 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/LayoutBox.h
|
View
|
1
2
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
View
|
1
2
3
4
|
6 chunks |
+16 lines, -40 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/layout/LayoutGrid.cpp
|
View
|
1
2
3
4
|
2 chunks |
+10 lines, -12 lines |
0 comments
|
Download
|
Total messages: 18 (5 generated)
|