<===> options.yml
---
:todo:
- sass/libsass#3044
<===>
================================================================================
<===> unitless/input.scss
@use "sass:math" as math;
a {b: math.hypot(3, 4, 5, 6, 7)}
<===> unitless/output.css
a {
b: 11.6189500386;
}
<===>
================================================================================
<===> compatible_units/input.scss
@use "sass:math" as math;
a {b: math.hypot(3cm, 4mm * 10, 5q * 40, math.div(6in, 2.54), 7px * math.div(96, 2.54))}
<===> compatible_units/output.css
a {
b: 11.6189500386cm;
}
<===>
================================================================================
<===> infinity/first/input.scss
@use "sass:math" as math;
a {b: math.hypot(math.div(1, 0), 1, 1)}
<===> infinity/first/output.css
a {
b: Infinity;
}
<===>
================================================================================
<===> infinity/second/input.scss
@use "sass:math" as math;
a {b: math.hypot(1, math.div(1, 0), 1)}
<===> infinity/second/output.css
a {
b: Infinity;
}
<===>
================================================================================
<===> infinity/third/input.scss
@use "sass:math" as math;
a {b: math.hypot(1, 1, math.div(1, 0))}
<===> infinity/third/output.css
a {
b: Infinity;
}
<===>
================================================================================
<===> error/type/first/input.scss
@use "sass:math" as math;
a {b: math.hypot("0", 1px, 1px)}
<===> error/type/first/error
Error: "0" is not a number.
,
2 | a {b: math.hypot("0", 1px, 1px)}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 2:7 root stylesheet
<===>
================================================================================
<===> error/type/second/input.scss
@use "sass:math" as math;
a {b: math.hypot(1px, "0", 1px)}
<===> error/type/second/error
Error: "0" is not a number.
,
2 | a {b: math.hypot(1px, "0", 1px)}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 2:7 root stylesheet
<===>
================================================================================
<===> error/type/third/input.scss
@use "sass:math" as math;
a {b: math.hypot(1px, 1px, "0")}
<===> error/type/third/error
Error: "0" is not a number.
,
2 | a {b: math.hypot(1px, 1px, "0")}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 2:7 root stylesheet
<===>
================================================================================
<===> error/incompatible_units/first_and_second/input.scss
@use "sass:math" as math;
a {b: math.hypot(1deg, 1px, 1turn)}
<===> error/incompatible_units/first_and_second/error
Error: $numbers[2]: 1px and $numbers[1]: 1deg have incompatible units.
,
2 | a {b: math.hypot(1deg, 1px, 1turn)}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 2:7 root stylesheet
<===>
================================================================================
<===> error/incompatible_units/first_and_third/input.scss
@use "sass:math" as math;
a {b: math.hypot(1deg, 1turn, 1px)}
<===> error/incompatible_units/first_and_third/error
Error: $numbers[3]: 1px and $numbers[1]: 1deg have incompatible units.
,
2 | a {b: math.hypot(1deg, 1turn, 1px)}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 2:7 root stylesheet
<===>
================================================================================
<===> error/incompatible_units/second_and_third/input.scss
@use "sass:math" as math;
a {b: math.hypot(1turn, 1deg, 1px)}
<===> error/incompatible_units/second_and_third/error
Error: $numbers[3]: 1px and $numbers[1]: 1turn have incompatible units.
,
2 | a {b: math.hypot(1turn, 1deg, 1px)}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 2:7 root stylesheet
<===>
================================================================================
<===> error/incompatible_units/all/input.scss
@use "sass:math" as math;
a {b: math.hypot(1turn, 1px, 1s)}
<===> error/incompatible_units/all/error
Error: $numbers[2]: 1px and $numbers[1]: 1turn have incompatible units.
,
2 | a {b: math.hypot(1turn, 1px, 1s)}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 2:7 root stylesheet
<===>
================================================================================
<===> error/some_unitless/first/input.scss
@use "sass:math" as math;
a {b: math.hypot(0, 1px, 2px)}
<===> error/some_unitless/first/error
Error: $numbers[2]: 1px and $numbers[1]: 0 have incompatible units (one has units and the other doesn't).
,
2 | a {b: math.hypot(0, 1px, 2px)}
| ^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 2:7 root stylesheet
<===>
================================================================================
<===> error/some_unitless/second/input.scss
@use "sass:math" as math;
a {b: math.hypot(0px, 1, 2px)}
<===> error/some_unitless/second/error
Error: $numbers[2]: 1 and $numbers[1]: 0px have incompatible units (one has units and the other doesn't).
,
2 | a {b: math.hypot(0px, 1, 2px)}
| ^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 2:7 root stylesheet
<===>
================================================================================
<===> error/some_unitless/third/input.scss
@use "sass:math" as math;
a {b: math.hypot(0px, 1px, 2)}
<===> error/some_unitless/third/error
Error: $numbers[3]: 2 and $numbers[1]: 0px have incompatible units (one has units and the other doesn't).
,
2 | a {b: math.hypot(0px, 1px, 2)}
| ^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 2:7 root stylesheet
<===>
================================================================================
<===> error/some_unitless/first_and_second/input.scss
@use "sass:math" as math;
a {b: math.hypot(0, 1, 2px)}
<===> error/some_unitless/first_and_second/error
Error: $numbers[3]: 2px and $numbers[1]: 0 have incompatible units (one has units and the other doesn't).
,
2 | a {b: math.hypot(0, 1, 2px)}
| ^^^^^^^^^^^^^^^^^^^^^
'
input.scss 2:7 root stylesheet
<===>
================================================================================
<===> error/some_unitless/first_and_third/input.scss
@use "sass:math" as math;
a {b: math.hypot(0, 1px, 2)}
<===> error/some_unitless/first_and_third/error
Error: $numbers[2]: 1px and $numbers[1]: 0 have incompatible units (one has units and the other doesn't).
,
2 | a {b: math.hypot(0, 1px, 2)}
| ^^^^^^^^^^^^^^^^^^^^^
'
input.scss 2:7 root stylesheet
<===>
================================================================================
<===> error/some_unitless/second_and_third/input.scss
@use "sass:math" as math;
a {b: math.hypot(0px, 1, 2)}
<===> error/some_unitless/second_and_third/error
Error: $numbers[2]: 1 and $numbers[1]: 0px have incompatible units (one has units and the other doesn't).
,
2 | a {b: math.hypot(0px, 1, 2)}
| ^^^^^^^^^^^^^^^^^^^^^
'
input.scss 2:7 root stylesheet
<===>
================================================================================
<===> error/zero_args/input.scss
@use "sass:math" as math;
a {b: math.hypot()}
<===> error/zero_args/error
Error: At least one argument must be passed.
,
2 | a {b: math.hypot()}
| ^^^^^^^^^^^^
'
input.scss 2:7 root stylesheet