Skip to content

Commit c23c6ad

Browse files
committedJan 29, 2024·
Restored parse-time clamping of HSL negative saturation to 0, which is current interop behavior from CSS Color 3. #9222
1 parent be48b10 commit c23c6ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎css-color-4/Overview.bs

+3
Original file line numberDiff line numberDiff line change
@@ -2265,6 +2265,9 @@ Converting HSL Colors to sRGB</h3>
22652265
representing the red, green, and blue channels of the colors,
22662266
normalized to the range [0, 1].
22672267

2268+
This code assumes that <em>parse-time</em> clamping
2269+
of negative saturation has already been applied.
2270+
22682271
<pre class="include-code lang-javascript">
22692272
path: hslToRgb.js
22702273
highlight: js

0 commit comments

Comments
 (0)
Please sign in to comment.