Commit b7c7e48
authored
Add
This PR adds a new `@container-size` utility instead of
`@container-[size]`.
The main reason we didn't do this before is because we only have
container width related container queries, and not block based ones so
we never needed `size` and `inline-size` was enough.
However, `@container-size` is still useful if you are using container
query related units such as `cqb` which are using the block size of the
container not the inline size.
I also added a little helper such that `@container-size` is only
available in `insiders` and `4.2.0` (and later) so `4.1.x` releases
won't have this utility yet. This will require some CHANGELOG changes
such that we don't include this when releasing the next minor release.@container-size utility (#18901)1 parent 2f1cbbf commit b7c7e48
File tree
4 files changed
+24
-12
lines changed- packages/tailwindcss/src
4 files changed
+24
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26214 | 26214 | | |
26215 | 26215 | | |
26216 | 26216 | | |
26217 | | - | |
26218 | | - | |
| 26217 | + | |
| 26218 | + | |
26219 | 26219 | | |
26220 | 26220 | | |
26221 | | - | |
26222 | | - | |
| 26221 | + | |
| 26222 | + | |
26223 | 26223 | | |
26224 | 26224 | | |
26225 | | - | |
26226 | | - | |
| 26225 | + | |
| 26226 | + | |
26227 | 26227 | | |
26228 | 26228 | | |
26229 | 26229 | | |
| |||
26234 | 26234 | | |
26235 | 26235 | | |
26236 | 26236 | | |
26237 | | - | |
26238 | | - | |
26239 | | - | |
26240 | | - | |
26241 | 26237 | | |
26242 | 26238 | | |
| 26239 | + | |
| 26240 | + | |
| 26241 | + | |
| 26242 | + | |
26243 | 26243 | | |
26244 | 26244 | | |
26245 | 26245 | | |
| |||
26248 | 26248 | | |
26249 | 26249 | | |
26250 | 26250 | | |
26251 | | - | |
26252 | | - | |
| 26251 | + | |
| 26252 | + | |
26253 | 26253 | | |
26254 | 26254 | | |
26255 | 26255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
5712 | 5713 | | |
5713 | 5714 | | |
5714 | 5715 | | |
| 5716 | + | |
| 5717 | + | |
| 5718 | + | |
| 5719 | + | |
| 5720 | + | |
| 5721 | + | |
5715 | 5722 | | |
5716 | 5723 | | |
5717 | 5724 | | |
| |||
0 commit comments