Skip to content

Commit 711f001

Browse files
committed
Remove bare value handling for perspective utilities
1 parent d25fe81 commit 711f001

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

packages/tailwindcss/src/utilities.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3142,10 +3142,6 @@ test('perspective', () => {
31423142
--perspective-normal: 500px;
31433143
}
31443144
3145-
.perspective-123 {
3146-
perspective: 123px;
3147-
}
3148-
31493145
.perspective-\\[456px\\] {
31503146
perspective: 456px;
31513147
}

packages/tailwindcss/src/utilities.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,10 +1501,6 @@ export function createUtilities(theme: Theme) {
15011501
staticUtility('perspective-none', [['perspective', 'none']])
15021502
functionalUtility('perspective', {
15031503
themeKeys: ['--perspective'],
1504-
handleBareValue: ({ value }) => {
1505-
if (!Number.isInteger(Number(value))) return null
1506-
return `${value}px`
1507-
},
15081504
handle: (value) => [decl('perspective', value)],
15091505
})
15101506

0 commit comments

Comments
 (0)