1<===> README.md 2We have to pass at least one argument in a variable to avoid being parsed as 3plain-CSS max(). 4 5<===> 6================================================================================ 7<===> one_arg/input.scss 8$arg: 1; 9a {b: max($arg)} 10 11<===> one_arg/output.css 12a { 13 b: 1; 14} 15 16<===> 17================================================================================ 18<===> two_args/input.scss 19$arg: 1; 20a {b: max($arg, 2)} 21 22<===> two_args/output.css 23a { 24 b: 2; 25} 26 27<===> 28================================================================================ 29<===> three_args/input.scss 30$arg: 1; 31a {b: max(3, $arg, 2)} 32 33<===> three_args/output.css 34a { 35 b: 3; 36} 37 38<===> 39================================================================================ 40<===> units/same/input.scss 41$arg: 6px; 42a {b: max($arg, 2px, 10px)} 43 44<===> units/same/output.css 45a { 46 b: 10px; 47} 48 49<===> 50================================================================================ 51<===> units/compatible/input.scss 52$arg: 1px; 53a {b: max($arg, 1in, 1cm)} 54 55<===> units/compatible/output.css 56a { 57 b: 1in; 58} 59 60<===> 61================================================================================ 62<===> units/and_unitless/input.scss 63$arg: 2px; 64a {b: max($arg, 1)} 65 66<===> units/and_unitless/output.css 67a { 68 b: 2px; 69} 70 71<===> 72================================================================================ 73<===> error/type/arg_1/input.scss 74$arg: c; 75a {b: max($arg)} 76 77<===> error/type/arg_1/error 78Error: c is not a number. 79 , 802 | a {b: max($arg)} 81 | ^^^^^^^^^ 82 ' 83 input.scss 2:7 root stylesheet 84 85<===> error/type/arg_1/error-libsass 86Error: "c" is not a number for `max' 87 on line 2:7 of input.scss, in function `max` 88 from line 2:7 of input.scss 89>> a {b: max($arg)} 90 91 ------^ 92 93<===> 94================================================================================ 95<===> error/type/arg_2/input.scss 96$arg: c; 97a {b: max(1, $arg)} 98 99<===> error/type/arg_2/error 100Error: c is not a number. 101 , 1022 | a {b: max(1, $arg)} 103 | ^^^^^^^^^^^^ 104 ' 105 input.scss 2:7 root stylesheet 106 107<===> error/type/arg_2/error-libsass 108Error: "c" is not a number for `max' 109 on line 2:7 of input.scss, in function `max` 110 from line 2:7 of input.scss 111>> a {b: max(1, $arg)} 112 113 ------^ 114 115<===> 116================================================================================ 117<===> error/type/arg_3/input.scss 118$arg: c; 119a {b: max(1, 2, $arg)} 120 121<===> error/type/arg_3/error 122Error: c is not a number. 123 , 1242 | a {b: max(1, 2, $arg)} 125 | ^^^^^^^^^^^^^^^ 126 ' 127 input.scss 2:7 root stylesheet 128 129<===> error/type/arg_3/error-libsass 130Error: "c" is not a number for `max' 131 on line 2:7 of input.scss, in function `max` 132 from line 2:7 of input.scss 133>> a {b: max(1, 2, $arg)} 134 135 ------^ 136 137<===> 138================================================================================ 139<===> error/too_few_args/input.scss 140a {b: max()} 141 142<===> error/too_few_args/error 143Error: At least one argument must be passed. 144 , 1451 | a {b: max()} 146 | ^^^^^ 147 ' 148 input.scss 1:7 root stylesheet 149 150<===> 151================================================================================ 152<===> error/incompatible_units/input.scss 153$arg: 1px; 154a {b: max($arg, 2s)} 155 156 157<===> error/incompatible_units/error 158Error: 1px and 2s have incompatible units. 159 , 1602 | a {b: max($arg, 2s)} 161 | ^^^^^^^^^^^^^ 162 ' 163 input.scss 2:7 root stylesheet 164 165<===> error/incompatible_units/error-libsass 166Internal Error: Incompatible units: 'px' and 's'. 167