Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Sep 26, 2024
1 parent a00f407 commit 61933f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/sassc/embedded.rb
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,8 @@ def self.from_native(value, options)
::SassC::Script::Value::Bool.new(value.to_bool)
when ::Sass::Value::Color
if COLOR4
if value.space == 'hsl' || value.space == 'hwb'
case value.space
when 'hsl', 'hwb'
value = value.to_space('hsl')
::SassC::Script::Value::Color.new(
hue: value.channel('hue'),
Expand Down

0 comments on commit 61933f4

Please sign in to comment.