Commit Graph

51 Commits

Author SHA1 Message Date
Will McGugan
303254f9ac test fixes 2022-05-27 10:24:32 +01:00
Olivier Philippon
685a2fb510 [css][scrollbar gutter] Manage the scrollbar-gutter: stable CSS property
(only for vertical content though; we may see later on if we want to also apply that logic for horizontal scrolls?)
https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-gutter
2022-05-12 10:19:46 +01:00
Olivier Philippon
aa7b19a193 [css] Address PR feedback for "Did you mean" suggestions 2022-05-11 10:45:38 +01:00
Olivier Philippon
e37036c816 [css] Add a "Did you mean" suggestion when the value of a color is wrong but we can find a close one 2022-05-10 11:13:38 +01:00
Darren Burns
07c14c6e64 Fix broken overflow, add regression test 2022-05-04 12:11:12 +01:00
Darren Burns
4a6b5a31f4 Merge pull request #459 from Textualize/expanded-css-hex-support
Support 3 and 4 character hex strings for colours
2022-05-04 10:23:54 +01:00
Darren Burns
568f183862 Fix test asserting that we dont support hex3 values 2022-05-03 17:32:25 +01:00
Olivier Philippon
26f138e69b [css] Address "did you mean" PR feedback 2022-05-03 15:40:06 +01:00
Olivier Philippon
f5aac5d028 [css] Use a HelpText for unknown CSS property name errors 2022-05-03 14:52:32 +01:00
Olivier Philippon
2c03f8cfe1 [css] Add a "did you mean" suggestion when an unknown CSS property is spotted
So using "bckgroundu: red" in a CSS file will report _"unknown declaration 'bckgroundu'; did you mean 'background'?"_
2022-05-03 14:52:32 +01:00
Will McGugan
1a3f65bb76 Merge branch 'css' into style-error-improvements 2022-04-29 10:56:27 +01:00
Will McGugan
dd8b11be87 Merge branch 'css' into add-web-colors-management-and-prefix-ansi-ones 2022-04-29 10:47:40 +01:00
Will McGugan
8e821d4113 lazy parse_rules 2022-04-29 10:34:35 +01:00
Will McGugan
233c2c4075 fix css reload 2022-04-29 10:20:32 +01:00
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
Darren Burns
91783b7c1e Testing for help text 2022-04-27 13:55:29 +01:00
Darren Burns
ef691019c4 Merge branch 'css' of github.com:Textualize/textual into style-error-improvements 2022-04-27 12:13:14 +01:00
Darren Burns
7329d6c200 Add help text for style-flags properties 2022-04-27 11:37:14 +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
Darren Burns
eab5f8fae1 Fixing failing opacity test 2022-04-26 13:28:39 +01:00
Darren Burns
b4da94b151 Add tests for Scalar copy_with 2022-04-26 11:16:51 +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