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
Table border radius is not applied when the border color is transpare…
…nt or semitransparent https://bugs.webkit.org/show_bug.cgi?id=154157 Reviewed by Simon Fraser. RenderTable::paintBoxDecorations also should create a transparency layer if determineBackgroundBleedAvoidance returns BackgroundBleedUseTransparencyLayer as well as RenderBox::paintBoxDecorations does. * LayoutTests/fast/table/table-border-radius-expected.html: Added. * LayoutTests/fast/table/table-border-radius.html: Added. * Source/WebCore/rendering/RenderTable.cpp: (WebCore::RenderTable::paintBoxDecorations): Canonical link: https://commits.webkit.org/252741@main
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
div { | ||
width: 300px; | ||
height: 50px; | ||
background: green; | ||
border: 10px solid; | ||
border-radius: 20px; | ||
box-sizing: border-box; | ||
} | ||
</style> | ||
|
||
<p>You should see four green boxes with rounded corners.</p> | ||
|
||
blue border | ||
<div style="border-color:blue"></div> | ||
dark green border | ||
<div style="border-color:rgba(0,0,0,0.5)"></div> | ||
no border | ||
<div style="border-color:transparent"></div> | ||
no border | ||
<div style="border-color:transparent"></div> |
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,22 @@ | ||
<!DOCTYPE html> | ||
<meta name="fuzzy" content="maxDifference=0-17; totalPixels=0-140"/> | ||
<style> | ||
table { | ||
width: 300px; | ||
height: 50px; | ||
background: green; | ||
border: 10px solid; | ||
border-radius: 20px; | ||
} | ||
</style> | ||
|
||
<p>You should see four green boxes with rounded corners.</p> | ||
|
||
blue border | ||
<table style="border-color:blue"></table> | ||
dark green border | ||
<table style="border-color:rgba(0,0,0,0.5)"></table> | ||
no border | ||
<table style="border-color:transparent"></table> | ||
no border | ||
<table style="border-color:rgba(0,0,0,0.5);border-collapse:collapse"></table> |
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