Skip to content

Commit 217ba92

Browse files
committed
Fix srgb to linear
1 parent 3ea7e07 commit 217ba92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sass/value/color/space/utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module Utils
3737
# @return [Numeric]
3838
def srgb_and_display_p3_to_linear(channel)
3939
abs = channel.abs
40-
abs < 0.04045 ? channel / 12.92 : (channel <=> 0) * (((abs + 0.055) / 1.055)**2.4)
40+
abs <= 0.04045 ? channel / 12.92 : (channel <=> 0) * (((abs + 0.055) / 1.055)**2.4)
4141
end
4242

4343
# The algorithm for converting a single `srgb` or `display-p3` channel to

0 commit comments

Comments
 (0)