Skip to content

Commit 7465d26

Browse files
committed
add failing test
- update test to include `translate-z-px` and `-translate-z-px` - remove the additional `translate: …` properties These should be fixed by the next commit
1 parent 113142a commit 7465d26

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/tailwindcss/src/utilities.test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4213,16 +4213,22 @@ test('translate-y', async () => {
42134213
})
42144214

42154215
test('translate-z', async () => {
4216-
expect(await run(['translate-z-px', '-translate-z-[var(--value)]'])).toMatchInlineSnapshot(`
4216+
expect(
4217+
await run(['-translate-z-px', 'translate-z-px', '-translate-z-[var(--value)]']),
4218+
).toMatchInlineSnapshot(`
42174219
".-translate-z-\\[var\\(--value\\)\\] {
42184220
--tw-translate-z: calc(var(--value) * -1);
42194221
translate: var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z);
42204222
}
42214223
4224+
.-translate-z-px {
4225+
--tw-translate-z: -1px;
4226+
translate: var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z);
4227+
}
4228+
42224229
.translate-z-px {
42234230
--tw-translate-z: 1px;
42244231
translate: var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z);
4225-
translate: var(--tw-translate-x) var(--tw-translate-y) var(--tw-translate-z);
42264232
}
42274233
42284234
@property --tw-translate-x {

0 commit comments

Comments
 (0)