Changeset 290674 in webkit
- Timestamp:
- Mar 1, 2022 1:57:06 PM (5 months ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/TestExpectations (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderGrid.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r290673 r290674 1 2022-03-01 Matt Woodrow <mattwoodrow@apple.com> 2 3 Use static position relative to parent for abs-pos items within nested grids. 4 https://bugs.webkit.org/show_bug.cgi?id=236957 5 6 Reviewed by Dean Jackson. 7 8 * TestExpectations: 9 10 Existing subgrid tests marked as passing. 11 1 12 2022-03-01 Andres Gonzalez <andresg_22@apple.com> 2 13 -
trunk/LayoutTests/TestExpectations
r290648 r290674 1400 1400 webkit.org/b/236959 imported/w3c/web-platform-tests/css/css-grid/subgrid/baseline-001.html [ ImageOnlyFailure ] 1401 1401 webkit.org/b/236956 imported/w3c/web-platform-tests/css/css-grid/subgrid/grid-gap-003.html [ ImageOnlyFailure ] 1402 webkit.org/b/236957 imported/w3c/web-platform-tests/css/css-grid/subgrid/line-names-007.html [ ImageOnlyFailure ]1403 1402 webkit.org/b/236958 imported/w3c/web-platform-tests/css/css-grid/subgrid/repeat-auto-fill-003.html [ ImageOnlyFailure ] 1404 1403 webkit.org/b/236949 imported/w3c/web-platform-tests/css/css-grid/subgrid/subgrid-mbp-overflow-001.html [ ImageOnlyFailure ] -
trunk/Source/WebCore/ChangeLog
r290672 r290674 1 2022-03-01 Matt Woodrow <mattwoodrow@apple.com> 2 3 Use static position relative to parent for abs-pos items within nested grids. 4 https://bugs.webkit.org/show_bug.cgi?id=236957 5 6 Reviewed by Dean Jackson. 7 8 In the case where an absolutely positioned element's parent and containing block 9 are both grid container, but they are not the same grid container, then the static position 10 of the abs-pos item should be relative to the parent, not the CB. 11 12 Existing subgrid tests marked as passing. 13 14 * rendering/RenderGrid.cpp: 15 (WebCore::RenderGrid::setLogicalOffsetForChild const): 16 1 17 2022-03-01 Alan Bujtas <zalan@apple.com> 2 18 -
trunk/Source/WebCore/rendering/RenderGrid.cpp
r290579 r290674 1901 1901 void RenderGrid::setLogicalOffsetForChild(RenderBox& child, GridTrackSizingDirection direction) const 1902 1902 { 1903 if ( !child.isGridItem()&& hasStaticPositionForChild(child, direction))1903 if (child.parent() != this && hasStaticPositionForChild(child, direction)) 1904 1904 return; 1905 1905 // 'setLogicalLeft' and 'setLogicalTop' only take into account the child's writing-mode, that's why 'flowAwareDirectionForChild' is needed.
Note: See TracChangeset
for help on using the changeset viewer.