Commit 04906c8
authored
* move `length` data type from `background-position` to `background-size`
This way it's backwards compatible with v3.
* sort data types
* update changelog
* make sure `length` is inferred later
Otherwise `bg-[120px]` would be inferred as `length` instead of
`position`.
In v3 this maps to `position` instead of `length`.
```css
.bg-\[120px\] {
background-position: 120px;
}
```
* add explicit test cases for `length` and `size` data types
1 parent 2fedbe0 commit 04906c8
File tree
3 files changed
+10
-6
lines changed- packages/tailwindcss/src
3 files changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7710 | 7710 | | |
7711 | 7711 | | |
7712 | 7712 | | |
| 7713 | + | |
7713 | 7714 | | |
| 7715 | + | |
7714 | 7716 | | |
7715 | 7717 | | |
7716 | 7718 | | |
| |||
7834 | 7836 | | |
7835 | 7837 | | |
7836 | 7838 | | |
7837 | | - | |
| 7839 | + | |
7838 | 7840 | | |
7839 | 7841 | | |
7840 | 7842 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2502 | 2502 | | |
2503 | 2503 | | |
2504 | 2504 | | |
2505 | | - | |
2506 | 2505 | | |
2507 | 2506 | | |
2508 | 2507 | | |
| 2508 | + | |
2509 | 2509 | | |
2510 | 2510 | | |
2511 | 2511 | | |
2512 | 2512 | | |
2513 | | - | |
2514 | 2513 | | |
2515 | 2514 | | |
2516 | 2515 | | |
2517 | 2516 | | |
2518 | | - | |
2519 | | - | |
| 2517 | + | |
| 2518 | + | |
| 2519 | + | |
2520 | 2520 | | |
2521 | 2521 | | |
2522 | 2522 | | |
| |||
0 commit comments