Commit 4fb329b
committed
feat(spark_css): add CssBackgroundSize type
Adds a new `CssBackgroundSize` sealed class to `spark_css` to support typed `background-size` property values.
Includes support for:
- Keywords: `cover`, `contain`, `auto`.
- Single or double `CssLength` values.
- Multiple background sizes (comma-separated).
- Variables, raw values, and global keywords.
Includes comprehensive tests in `packages/spark_css/test/css_background_size_test.dart`.1 parent 1007f0c commit 4fb329b
2 files changed
Lines changed: 5 additions & 13 deletions
File tree
- packages/spark_css
- lib/src/css_types
- test
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 19 | + | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 24 | + | |
31 | 25 | | |
32 | 26 | | |
33 | 27 | | |
| |||
65 | 59 | | |
66 | 60 | | |
67 | 61 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 62 | + | |
72 | 63 | | |
73 | 64 | | |
74 | 65 | | |
| |||
0 commit comments