-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1893818 [wpt PR 45941] - [css-color] Tests assume old hsl()/hsla(…
…) clipping behavior or depend on unclear gamut mapping to sRGB, a=testonly Automatic update from web-platform-tests [css-color] Tests assume old hsl()/hsla() clipping behavior or depend on unclear gamut mapping to sRGB (#45941) web-platform-tests/wpt#45814 Removes tests that were assuming the CSS Color 3 rules for hsl()/hsla() where lightness and saturation values outside of 0-100 were clamped to that range. CSS Color 4 states that only saturation below 0 is clamped. To make it clear that only the saturation clamping is being tested, the tests where that is still tested have been renamed to be more clear. -- wpt-commits: fd6e317871ed6baeedfe25b03b79b73eb898d15c wpt-pr: 45941
- Loading branch information
1 parent
9fbda4f
commit 8e6635b
Showing
7 changed files
with
79 additions
and
165 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
37 changes: 37 additions & 0 deletions
37
testing/web-platform/tests/css/css-color/hsl-clamp-negative-saturation.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,37 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>CSS Test: hsl() clamp negative saturation values</title> | ||
<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> | ||
<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> | ||
<link rel="help" href="https://www.w3.org/TR/css-color-4/#the-hsl-notation" /> | ||
<link rel="match" href="hsl-clamp-negative-saturation-ref.html" /> | ||
<meta name="assert" content="Test clamping of negative saturation values in hsl() functions." /> | ||
<style type="text/css"> | ||
|
||
table { border-spacing: 0 2px; padding: 0; border: none; } | ||
td { border: none; padding: 0; height: 1.2em; } | ||
|
||
</style> | ||
</head> | ||
<body> | ||
|
||
<p>Every row in this table should have both columns the same color:</p> | ||
|
||
<table> | ||
<tr> | ||
<th style="background:white; color: black">Column 1</th> | ||
<th style="background:black; color: white">Column 2</th> | ||
</tr> | ||
<tr> | ||
<td style="background: hsl(0, -50%, 40%)"> </td> | ||
<td style="background: rgb(102, 102, 102)"> </td> | ||
</tr> | ||
<tr> | ||
<td style="background: hsl(30, -50%, 60%)"> </td> | ||
<td style="background: rgb(153, 153, 153)"> </td> | ||
</tr> | ||
</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
38 changes: 38 additions & 0 deletions
38
testing/web-platform/tests/css/css-color/hsla-clamp-negative-saturation.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,38 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>CSS Test: hsla() clamp negative saturation values</title> | ||
<link rel="author" title="L. David Baron" href="https://dbaron.org/" /> | ||
<link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> | ||
<link rel="help" href="https://www.w3.org/TR/css-color-4/#the-hsl-notation" /> | ||
<link rel="match" href="hsla-clamp-negative-saturation-ref.html" /> | ||
<meta name="assert" content="Test clamping of negative saturation values in hsla() functions." /> | ||
<style type="text/css"> | ||
|
||
body { background: white; color: black; } | ||
table { border-spacing: 0 2px; padding: 0; border: none; } | ||
td { border: none; padding: 0; height: 1.2em; } | ||
|
||
</style> | ||
</head> | ||
<body> | ||
|
||
<p>Every row in this table should have both columns the same color:</p> | ||
|
||
<table> | ||
<tr> | ||
<th style="background:white; color: black">Column 1</th> | ||
<th style="background:black; color: white">Column 2</th> | ||
</tr> | ||
<tr> | ||
<td style="background: hsla(0, -50%, 40%, 0.4)"> </td> | ||
<td style="background: rgb(194, 194, 194)"> </td> | ||
</tr> | ||
<tr> | ||
<td style="background: hsla(30, -50%, 60%, 0.6)"> </td> | ||
<td style="background: rgb(194, 194, 194)"> </td> | ||
</tr> | ||
</table> | ||
|
||
</body> | ||
</html> |
60 changes: 0 additions & 60 deletions
60
testing/web-platform/tests/css/css-color/t424-hsl-clip-outside-gamut-b.xht
This file was deleted.
Oops, something went wrong.
61 changes: 0 additions & 61 deletions
61
testing/web-platform/tests/css/css-color/t425-hsla-clip-outside-device-gamut-b.xht
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