Skip to content

Commit

Permalink
Interprolation in Calculation is more strict
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Sep 14, 2023
1 parent bc84eba commit 46bb8c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/sass_proto_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ def remote_eq(lhs, rhs)
__LINE__ => Sass::Value::Calculation.max([
Sass::Value::String.new('1', quoted: false),
Sass::Value::Number.new(42, 'px'),
Sass::CalculationValue::CalculationInterpolation.new('1em')
Sass::Value::Calculation.min([
Sass::Value::Number.new(1, 'rem'),
Sass::Value::Number.new(42, 'pt')
])
]),
__LINE__ => Sass::Value::Calculation.clamp(Sass::CalculationValue::CalculationInterpolation.new('var(--clamp)')),
__LINE__ => Sass::Value::Calculation.clamp(Sass::Value::String.new('var(--clamp)', quoted: false)),
__LINE__ => Sass::Value::Color.new(red: 0, green: 0, blue: 0, alpha: 1),
__LINE__ => Sass::Value::Color.new(hue: 0, saturation: 0, lightness: 0, alpha: 1),
Expand Down

0 comments on commit 46bb8c3

Please sign in to comment.