767 Commits

Author SHA1 Message Date
ConnorSkees
a6cc86e4db Create tests for media queries 2020-02-22 13:03:02 -05:00
ConnorSkees
8c227290a0 Flatten whitespace in media query 2020-02-22 12:56:23 -05:00
ConnorSkees
d1d636fa17 Trim whitespace from media query 2020-02-22 12:53:58 -05:00
ConnorSkees
71b4729613 Toplevel unknown at rules 2020-02-22 12:02:52 -05:00
ConnorSkees
c8e3462e74 placeholder for unknown at rules in Display 2020-02-22 12:00:07 -05:00
ConnorSkees
a4cd8ae02c rustfmt 2020-02-22 11:59:33 -05:00
ConnorSkees
e6120a0f59 Properly convert unknown at rules to css 2020-02-22 11:59:16 -05:00
ConnorSkees
d114509464 Parse and construct unknown at rules 2020-02-22 11:58:30 -05:00
ConnorSkees
cacf8c41ab Implement Selector::new() utility function 2020-02-22 10:25:30 -05:00
ConnorSkees
2c38db8703 2020-02-18 tests 2020-02-18 07:09:12 -05:00
ConnorSkees
fa665ae55f color addition is undefined 2020-02-17 10:39:32 -05:00
ConnorSkees
844b506872 Value operations can fail 2020-02-17 10:27:04 -05:00
ConnorSkees
0e2e5cb8bc Add period to mixin error message 2020-02-17 10:02:44 -05:00
ConnorSkees
af4917a4e6 correct regression in toplevel & error message
Broken in bb16060ddb8df75b2096966dda1e5c700a494407
2020-02-17 09:53:10 -05:00
ConnorSkees
85a2c8eaeb Better error for missing identifier after : in selector 2020-02-17 09:40:30 -05:00
ConnorSkees
bb16060ddb rustfmt 2020-02-17 09:37:34 -05:00
ConnorSkees
36ec80e0da Use .remove() over .get() to avoid clone 2020-02-17 09:33:52 -05:00
ConnorSkees
585011c621 Remove unwrap from FuncArgs 2020-02-17 09:29:05 -05:00
ConnorSkees
dbe73fc2ac rustfmt 2020-02-17 09:23:24 -05:00
ConnorSkees
eab0049566 Use SassError in more places 2020-02-17 09:22:41 -05:00
ConnorSkees
64fbc96d9d Form feed is whitespace 2020-02-17 09:09:31 -05:00
ConnorSkees
af443f8f57 Prefer .remove() over .get() to avoid clone 2020-02-17 09:08:28 -05:00
ConnorSkees
33d486ccde Properly handle hsl value in color::other functions 2020-02-17 08:16:04 -05:00
ConnorSkees
f7aacba76c Use .remove() over .get() to avoid a clone 2020-02-17 08:13:15 -05:00
ConnorSkees
e7de93bd38 Proper error message for undefined variables 2020-02-17 07:55:03 -05:00
ConnorSkees
f550d820b0 change-color() hue error message 2020-02-16 22:49:19 -05:00
ConnorSkees
4040e3ad1c sat and lum in change color are scale: 2020-02-16 22:46:27 -05:00
ConnorSkees
86a0e24330 Proper bounds for change-color rgba 2020-02-16 22:35:02 -05:00
ConnorSkees
5ee5f59b2c Error messages for color::other functions 2020-02-16 22:30:29 -05:00
ConnorSkees
e5bbba3462 Take self by value in eval to avoid clone in common case 2020-02-16 22:06:30 -05:00
ConnorSkees
23b90aa97e Use remove() rather than .get() to avoid a clone 2020-02-16 22:04:54 -05:00
ConnorSkees
a44e52c7e3 Test for trailing comma in function args 2020-02-16 21:46:11 -05:00
ConnorSkees
95f8917d6c Uncomment meta function tests 2020-02-16 21:42:40 -05:00
ConnorSkees
8e0fdb8585 Test for named arg with value of variable 2020-02-16 21:38:29 -05:00
ConnorSkees
42cbd685d3 Refactor how function call args are parsed 2020-02-16 21:34:52 -05:00
ConnorSkees
c68a55327b Unquote empty string is null 2020-02-16 18:45:14 -05:00
ConnorSkees
3962c4410a Proper error messages for str-slice 2020-02-16 18:42:35 -05:00
ConnorSkees
09e4537e78 Proper error in str-slice when passed float 2020-02-16 18:39:27 -05:00
ConnorSkees
c9f7289670 Error messages for string functions 2020-02-16 18:32:13 -05:00
ConnorSkees
908104ec1c Properly implement percentage() error messages 2020-02-16 18:26:57 -05:00
ConnorSkees
af5c945dfa Return literal unit in StyleSheet::Display 2020-02-16 18:26:35 -05:00
ConnorSkees
26b0f2c998 Add max_args! to most functions 2020-02-16 18:18:57 -05:00
ConnorSkees
f081259b02 Refactor meta builtins 2020-02-16 18:15:56 -05:00
ConnorSkees
9626cbc55f Improved error messages for math functions 2020-02-16 18:10:56 -05:00
ConnorSkees
87579b181b clippy 2020-02-16 18:03:19 -05:00
ConnorSkees
f57da880b6 fmt 2020-02-16 17:49:37 -05:00
ConnorSkees
3e89a0a057 Handle numbers passed to saturate 2020-02-16 17:13:17 -05:00
ConnorSkees
d4dd360682 Handle number passed to invert() 2020-02-16 17:00:31 -05:00
ConnorSkees
948c489785 Properly implement weighted inversion 2020-02-16 16:53:28 -05:00
ConnorSkees
ca0e2d47cb Grayscale function behaves differently when given a number 2020-02-16 16:11:24 -05:00