Skip to content

Commit 4d7b708

Browse files
committed
Add a note about new behavior of color.adjust()
1 parent f3869d9 commit 4d7b708

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
is now interpreted as a percentage, instead of ignoring the unit. For example,
66
`color.change(red, $alpha: 50%)` now returns `rgb(255 0 0 / 0.5)`.
77

8+
* **Potentially breaking compatibility fix**: Passing large positive or negative
9+
values to `color.adjust()` can now cause a color's channels to go outside that
10+
color's gamut. In most cases this will currently be clipped by the browser and
11+
end up showing the same color as before, but once browsers implement gamut
12+
mapping it may produce a different result.
13+
814
* Add support for CSS Color Level 4 [color spaces]. Each color value now tracks
915
its color space along with the values of each channel in that color space.
1016
There are two general principles to keep in mind when dealing with new color

0 commit comments

Comments
 (0)