Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Take overflow: clip into account when computing table overflow
https://bugs.webkit.org/show_bug.cgi?id=251909 Reviewed by Alan Baradlay. When computing table overflow overflow: clip should be treated like overflow: hidden: https://github.com/w3c/csswg-drafts/pull/7492/files * LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/overflow-clip-rounded-table-expected.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-overflow/overflow-clip-rounded-table.html: Added. * Source/WebCore/style/StyleAdjuster.cpp: (WebCore::Style::Adjuster::adjust const): Canonical link: https://commits.webkit.org/264849@main
- Loading branch information
Showing
3 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...mported/w3c/web-platform-tests/css/css-overflow/overflow-clip-rounded-table-expected.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html><head><meta charset="utf-8"> | ||
<title>Verifies overflow-clip on table with rounded border renders correctly</title> | ||
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#valdef-overflow-clip"> | ||
<style> | ||
table { | ||
border-radius: 10px; | ||
border-collapse: collapse; | ||
overflow: hidden; | ||
} | ||
thead { | ||
background: green; | ||
} | ||
</style> | ||
</head><body><p>You should see a green table with rounded corners</p> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>One</th> | ||
<th>Two</th> | ||
</tr> | ||
</thead> | ||
</table> | ||
</body></html> |
25 changes: 25 additions & 0 deletions
25
...utTests/imported/w3c/web-platform-tests/css/css-overflow/overflow-clip-rounded-table.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html><head><meta charset="utf-8"> | ||
<title>Verifies overflow-clip on table with rounded border renders correctly</title> | ||
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#valdef-overflow-clip"> | ||
<link rel="match" href="overflow-clip-rounded-table-ref.html"> | ||
<style> | ||
table { | ||
border-radius: 10px; | ||
border-collapse: collapse; | ||
overflow: clip; | ||
} | ||
thead { | ||
background: green; | ||
} | ||
</style> | ||
</head><body><p>You should see a green table with rounded corners</p> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>One</th> | ||
<th>Two</th> | ||
</tr> | ||
</thead> | ||
</table> | ||
</body></html> |
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