diff --git a/spec/core_functions/color/adjust_hue.hrx b/spec/core_functions/color/adjust_hue.hrx index 17464814c9..0bd7dc92c0 100644 --- a/spec/core_functions/color/adjust_hue.hrx +++ b/spec/core_functions/color/adjust_hue.hrx @@ -114,9 +114,9 @@ a { } <===> units/unknown/warning -DEPRECATION WARNING: $null: Passing a unit other than deg (60in) is deprecated. +DEPRECATION WARNING: $degrees: Passing a unit other than deg (60in) is deprecated. -To preserve current behavior: $null / 1in +To preserve current behavior: $degrees / 1in See https://sass-lang.com/d/color-units @@ -137,13 +137,13 @@ a { } <===> units/angle/warning -DEPRECATION WARNING: $null: Passing a unit other than deg (60rad) is deprecated. +DEPRECATION WARNING: $degrees: Passing a unit other than deg (60rad) is deprecated. You're passing 60rad, which is currently (incorrectly) converted to 60deg. Soon, it will instead be correctly converted to 3437.7467707849deg. -To preserve current behavior: $null * 1deg/1rad -To migrate to new behavior: 0deg + $null +To preserve current behavior: $degrees * 1deg/1rad +To migrate to new behavior: 0deg + $degrees See https://sass-lang.com/d/color-units diff --git a/spec/core_functions/color/hwb/three_args/units.hrx b/spec/core_functions/color/hwb/three_args/units.hrx index 8bb957f852..d1ccf1def6 100644 --- a/spec/core_functions/color/hwb/three_args/units.hrx +++ b/spec/core_functions/color/hwb/three_args/units.hrx @@ -6,3 +6,55 @@ a {b: color.hwb(0deg, 30%, 40%)} a { b: #994d4d; } + +<===> +================================================================================ +<===> hue/rad/input.scss +@use 'sass:color'; +a {b: color.hwb(1rad, 30%, 40%)} + +<===> hue/rad/output.css +a { + b: #994e4d; +} + +<===> hue/rad/warning +DEPRECATION WARNING: $hue: Passing a unit other than deg (1rad) is deprecated. + +You're passing 1rad, which is currently (incorrectly) converted to 1deg. +Soon, it will instead be correctly converted to 57.2957795131deg. + +To preserve current behavior: $hue * 1deg/1rad +To migrate to new behavior: 0deg + $hue + +See https://sass-lang.com/d/color-units + + , +2 | a {b: color.hwb(1rad, 30%, 40%)} + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 2:7 root stylesheet + +<===> +================================================================================ +<===> hue/non_angle/input.scss +@use 'sass:color'; +a {b: color.hwb(1in, 30%, 40%)} + +<===> hue/non_angle/output.css +a { + b: #994e4d; +} + +<===> hue/non_angle/warning +DEPRECATION WARNING: $hue: Passing a unit other than deg (1in) is deprecated. + +To preserve current behavior: $hue / 1in + +See https://sass-lang.com/d/color-units + + , +2 | a {b: color.hwb(1in, 30%, 40%)} + | ^^^^^^^^^^^^^^^^^^^^^^^^ + ' + input.scss 2:7 root stylesheet