Commit Graph

108 Commits

Author SHA1 Message Date
Will McGugan
20a1612361 Invalid pseudo selectors (#2445)
* token error

* error on bad pseudo selectors
2023-05-01 16:22:35 +01:00
Will McGugan
13939499d9 implement single line comments (#2248) 2023-04-11 15:21:41 +01:00
Dave Pearson
8220af4bfe Add some initial rules to a "mega stylesheet"
The start of what will hopefully become a one-stop comprehensive test of all
the fun corners of stylesheet parsing. While not intended to replace all the
other unit tests for CSS, this test should help to quickly and easily be
sure that nothing breaks any valid CSS.

Influenced by #1253 and #1836 this code starts the process of implementing
the requirement outlined in #1838.

Adding more rules -- simple and/or weird -- that are expected and known to
parse without a problem is encouraged.
2023-03-14 14:11:32 +00:00
Dave Pearson
e666ee7286 Fix variable name typo
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-02-20 21:25:12 +00:00
Dave Pearson
e8e00b1920 Fix variable name typo
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-02-20 21:25:03 +00:00
Dave Pearson
8ec13c3aba Fix variable name typo
Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
2023-02-20 21:24:48 +00:00
Dave Pearson
f785a51769 Add combined type CSS parsing tests 2023-02-20 10:08:02 +00:00
Darren Burns
9287f64a66 Add isort pre-commit hook, sort imports in src and test directories 2023-02-09 13:28:08 +00:00
Will McGugan
38140c564b imports 2023-02-07 10:54:29 +00:00
Will McGugan
5930ebf82e remove _typing.py 2023-02-07 10:46:28 +00:00
Rodrigo Girão Serrão
b023d4e02e Improve tests. 2023-01-30 12:34:35 +00:00
Rodrigo Girão Serrão
c4dbde1994 Don't force layout on overflow change.
Fix: #1628.
2023-01-26 16:18:09 +00:00
Rodrigo Girão Serrão
2deb96c3ed Merge branch 'main' into fix-1607 2023-01-23 17:32:02 +00:00
Rodrigo Girão Serrão
e7f76bf85a Add regression tests. 2023-01-23 15:04:36 +00:00
Rodrigo Girão Serrão
ef4bd43c9b Add regression test. 2023-01-20 11:33:30 +00:00
darrenburns
5e64a9fb90 Introduce _typing module for version-dependent typing imports (#1088)
* Introduce _typing module for version-dependent typing imports

* Remove unused import
2022-11-01 17:13:42 +00:00
Will McGugan
ac3d756e51 unmount event 2022-10-27 17:43:02 +01:00
Darren Burns
72dff52212 Unit test for Styles.css 2022-10-07 14:38:02 +01:00
Will McGugan
314142e161 test fix 2022-09-14 10:03:46 +01:00
Will McGugan
d7eb1e21f4 test fix 2022-09-02 10:04:58 +01:00
Will McGugan
e555b8512f Default css 2022-09-02 09:56:04 +01:00
Darren Burns
4ed9e780de Merge branch 'css' of github.com:willmcgugan/textual into opacity-changes 2022-08-31 14:16:02 +01:00
Darren Burns
210214260d Renaming opacity to text-opacity in code 2022-08-31 13:39:34 +01:00
Darren Burns
45fbad2931 Merge branch 'css' of github.com:Textualize/textual into delay-transition 2022-08-30 16:07:46 +01:00
Darren Burns
779f49f858 Merge branch 'css' of github.com:Textualize/textual into delay-transition 2022-08-30 12:03:30 +01:00
Darren Burns
6ff6047417 text-align testing 2022-08-26 15:38:09 +01:00
Darren Burns
ad803a7753 Text justify has become text align 2022-08-26 15:33:42 +01:00
Darren Burns
6017bdd6d9 Merge branch 'css' of github.com:willmcgugan/textual into text-justify 2022-08-26 12:28:23 +01:00
Darren Burns
57620fee8c Test that text-justify property with empty value uses default 2022-08-26 12:28:08 +01:00
Darren Burns
a45bf58f7e Adding tests for text-justify CSS property 2022-08-26 11:34:50 +01:00
Will McGugan
b22436933a lots of docstrings 2022-08-25 09:08:35 +01:00
Darren Burns
9fe0a5f21c Add animation/transition delay support 2022-08-16 15:37:09 +01:00
Will McGugan
fa4b971bff more docs 2022-08-04 15:27:41 +01:00
Will McGugan
1abe8f933d test fixes, tests for partition 2022-07-27 15:37:33 +01:00
Will McGugan
a43cb126f5 test fix 2022-07-20 19:08:10 +01:00
Will McGugan
e0a59d0e9a fix test 2022-07-20 16:23:11 +01:00
Will McGugan
49764a3ec7 improved color harmony 2022-07-19 21:41:34 +01:00
Will McGugan
d751048350 Merge pull request #602 from Textualize/render-cache
Render cache
2022-07-05 13:27:22 +01:00
Will McGugan
0ba3ffb171 size properties 2022-07-04 21:15:24 +01:00
Darren Burns
908e2e940a Feedback from code review 2022-06-29 13:30:21 +01:00
Darren Burns
8617cbdc70 Update test over user css over widget css to show important widget css can be overridden by users too 2022-06-28 18:39:39 +01:00
Darren Burns
972aeece64 Add Specificity5 for user defined CSS 2022-06-28 17:26:18 +01:00
Darren Burns
7ebac6b860 Add wip test for user over widget css, use type alias 2022-06-28 13:52:58 +01:00
Will McGugan
2999626973 Merge branch 'css' into scroll-view 2022-06-21 10:33:29 +01:00
Will McGugan
f4c12704fe fix tests 2022-06-17 16:03:05 +01:00
Darren Burns
c9fb0f0423 Testing HSL and testing spaces in rgb(..), hsl(..) css declarations 2022-06-17 15:33:12 +01:00
Darren Burns
c4c7e537f2 Fix regex, fix some broken tests around HSL support 2022-06-17 15:33:12 +01:00
Darren Burns
be771a0fca Add extra test 2022-06-16 15:47:41 +01:00
Darren Burns
4dd0d9fae4 Add various additional tests around CSS specificity 2022-06-16 15:33:53 +01:00
Darren Burns
dc30ace121 Fix specificity ordering 2022-06-16 15:01:15 +01:00