Skip to content

Commit ce0dd72

Browse files
committed
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; } ```
1 parent c820f95 commit ce0dd72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tailwindcss/src/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2502,10 +2502,10 @@ export function createUtilities(theme: Theme) {
25022502
inferDataType(value, [
25032503
'image',
25042504
'color',
2505-
'length',
25062505
'percentage',
25072506
'position',
25082507
'bg-size',
2508+
'length',
25092509
'url',
25102510
])
25112511

0 commit comments

Comments
 (0)