-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for align-content on table cells.
https://bugs.webkit.org/show_bug.cgi?id=266453 rdar://119701629 Reviewed by Sammy Gill. Updates vertical-align conditionals in table rendering to first check align-content, and map behavior accordingly. * LayoutTests/imported/w3c/web-platform-tests/css/css-align/blocks/align-content-table-cell-expected.txt: Update to pass * LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/css-align/blocks/align-content-table-cell-expected.txt: Removed. * LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/css-align/blocks/align-content-table-cell-expected.txt: Removed. * Source/WebCore/rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::layoutBlock): Skip alignment if we're a table cell * Source/WebCore/rendering/RenderTableCell.cpp: (WebCore::RenderTableCell::computeIntrinsicPadding): Map align-content values to corresponding vertical-align behavior. (WebCore::RenderTableCell::styleDidChange): Handle align-content style changes same as vertical-align. (WebCore::RenderTableCell::scrollbarsChanged): Handle align-content centering same as vertical-align. * Source/WebCore/rendering/RenderTableCell.h: (WebCore::RenderTableCell::isBaselineAligned const): Update to check align-content first. Canonical link: https://commits.webkit.org/272373@main
- Loading branch information
Showing
6 changed files
with
26 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
...mported/w3c/web-platform-tests/css/css-align/blocks/align-content-table-cell-expected.txt
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
...mported/w3c/web-platform-tests/css/css-align/blocks/align-content-table-cell-expected.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters