Commit Graph

32 Commits

Author SHA1 Message Date
Olivier Philippon
eedec6c863 [colors] Merge the first 16 ANSI colors with the named Web ones, add "transparent" 2022-04-28 15:00:26 +01:00
Olivier Philippon
a304334628 [colors] Add management of named Web colors to our CSS processing, prefix ANSI ones with ansi_ 2022-04-28 14:21:02 +01:00
Olivier Philippon
d0b8cacc35 [css][bugfix] CSS colors can now have digits at the end of their names 2022-04-28 10:44:05 +01:00
Olivier Philippon
f7e72ed945 [widget] Better tests for types of values we handle or not in style's size 2022-04-27 11:26:33 +01:00
Will McGugan
ba92ef0c3c test fix 2022-04-12 17:10:15 +01:00
Will McGugan
cbd258d93a fix tests 2022-04-12 16:49:36 +01:00
Will McGugan
e238bee274 ws 2022-04-12 16:37:32 +01:00
Will McGugan
4f63fc086f require semi-colons 2022-04-11 15:25:21 +01:00
Will McGugan
d234c54343 test fixes 2022-04-03 21:30:51 +01:00
Will McGugan
5508ece2e3 color animation 2022-03-30 15:04:36 +01:00
Darren Burns
66fa0020e8 Improve a docstring, add tests for CSS opacity parsing 2022-02-14 10:28:52 +00:00
Darren Burns
281748ba61 Add test for when opacity value is invalid 2022-02-11 12:13:12 +00:00
Darren Burns
0187bec7f4 Testing opacity style property 2022-02-11 12:09:52 +00:00
Darren Burns
563b7bd7e1 Move test_styles into css test folder 2022-02-11 11:59:32 +00:00
Darren Burns
50327f5b5a Rename PercentageProperty to FractionalProperty 2022-02-11 11:51:06 +00:00
Darren Burns
b08bdab75f Change whitespace trimming during css var sub, add more tests 2022-02-07 15:18:07 +00:00
Darren Burns
bb8b4e89d3 Error handling 2022-02-04 11:43:35 +00:00
Darren Burns
ee8eb40e0f Updating tests to support token referencing 2022-02-03 16:07:09 +00:00
Darren Burns
33e8bc4584 Highlighting correct span of code when variable of incorrect type is used 2022-02-03 14:19:54 +00:00
Darren Burns
6b1554d970 Fix issue with css variables with multiple values 2022-02-03 12:43:05 +00:00
Darren Burns
d21bd82406 Adding a test around the whitespace trimming logic 2022-02-03 10:27:01 +00:00
Darren Burns
65a6b8d261 Substitution variables 2022-02-02 15:49:16 +00:00
Darren Burns
ac9e3cdfff Re-add support for variable references 2022-02-02 10:59:17 +00:00
Darren Burns
6587ba257f Parsing variable values as individual tokens 2022-02-02 10:49:09 +00:00
Darren Burns
143253b985 Changes tokenisation of variables to be arbitrary text instead of tokenising to data types 2022-02-01 15:43:20 +00:00
Darren Burns
d86ec1889e Variable references 2022-02-01 13:42:51 +00:00
Darren Burns
ac81229564 Renaming some tests to improve clarity 2022-02-01 13:23:19 +00:00
Darren Burns
be091582ed Additional tests for variables with multiple values/comments 2022-02-01 13:07:32 +00:00
Darren Burns
9d5d6b1008 Renaming "declaration" tokens to differentiate between rule and variable declarations 2022-02-01 12:37:22 +00:00
Darren Burns
a99d60f9f8 Tokenising variable declarations 2022-02-01 11:52:15 +00:00
Darren Burns
ea2819f65b Tokenising variable declarations 2022-02-01 11:51:10 +00:00
Darren Burns
37668779da tests/test_css_parse.py -> tests/css/test_parse.py 2022-02-01 10:09:24 +00:00