Skip to content

Commit 72bc00d

Browse files
committed
Test that scale-x overrides scale
1 parent 03a5c47 commit 72bc00d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

packages/tailwindcss/src/utilities.test.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3086,6 +3086,37 @@ test('scale-x', () => {
30863086
initial-value: 1;
30873087
}"
30883088
`)
3089+
expect(run(['scale-200', 'scale-x-400'])).toMatchInlineSnapshot(`
3090+
".scale-200 {
3091+
--tw-scale-x: 200%;
3092+
--tw-scale-y: 200%;
3093+
--tw-scale-z: 200%;
3094+
scale: var(--tw-scale-x) var(--tw-scale-y);
3095+
}
3096+
3097+
.scale-x-400 {
3098+
--tw-scale-x: 400%;
3099+
scale: var(--tw-scale-x) var(--tw-scale-y);
3100+
}
3101+
3102+
@property --tw-scale-x {
3103+
syntax: "<number> | <percentage>";
3104+
inherits: false;
3105+
initial-value: 1;
3106+
}
3107+
3108+
@property --tw-scale-y {
3109+
syntax: "<number> | <percentage>";
3110+
inherits: false;
3111+
initial-value: 1;
3112+
}
3113+
3114+
@property --tw-scale-z {
3115+
syntax: "<number> | <percentage>";
3116+
inherits: false;
3117+
initial-value: 1;
3118+
}"
3119+
`)
30893120
expect(run(['scale-x', 'scale-x-unknown'])).toEqual('')
30903121
})
30913122

0 commit comments

Comments
 (0)