mirror of
https://github.com/sass/sass.git
synced 2024-09-21 02:27:30 +00:00
Require quoted strings for channel names (fixes #3464)
This commit is contained in:
parent
272735914d
commit
c9a9a8d3de
@ -3,6 +3,13 @@
|
||||
* Deprecate the `color.alpha()` function along with the other legacy channel
|
||||
access functions.
|
||||
|
||||
* Require quoted strings for channel names in `color.is-powerless()` and
|
||||
`color.channel()`, to avoid syntax conflicts between `rgb` channel names and
|
||||
their respective named colors (e.g. `'red'` the channel vs `red` the color).
|
||||
|
||||
* Define how deprecated functions behave as alias functions during the
|
||||
deprecation process.
|
||||
|
||||
## Draft 1.2
|
||||
|
||||
* Clamp `hsl` saturation & lightness when generating `hsl` colors, and gamut-map
|
||||
|
@ -1443,7 +1443,7 @@ is-powerless($color, $channel, $space: null)
|
||||
|
||||
* If `$color` is not a color, throw an error.
|
||||
|
||||
* If `$channel` is not an unquoted string, throw an error.
|
||||
* If `$channel` is not a quoted string, throw an error.
|
||||
|
||||
* If `$space` is null:
|
||||
|
||||
@ -1525,9 +1525,9 @@ channel($color, $channel, $space: null)
|
||||
|
||||
* If `$color` is not a color, throw an error.
|
||||
|
||||
* If `$channel` is not an unquoted string, throw an error.
|
||||
* If `$channel` is not a quoted string, throw an error.
|
||||
|
||||
* If `$channel == alpha` (ignoring case), let `value` be the alpha value of
|
||||
* If `$channel == 'alpha'` (ignoring case), let `value` be the alpha value of
|
||||
`$color`.
|
||||
|
||||
* Otherwise:
|
||||
|
Loading…
Reference in New Issue
Block a user