Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declare transform properties with "*" syntax instead of "<transform-function>" #15179

Merged
merged 3 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Declare transform properties with * syntax
  • Loading branch information
adamwathan committed Nov 25, 2024
commit 6428185b3f8df01e07cd8cedb57462f4b8e487b0
70 changes: 35 additions & 35 deletions packages/tailwindcss/src/utilities.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4467,31 +4467,31 @@ test('rotate-x', async () => {
}

@property --tw-rotate-x {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateX(0);
}

@property --tw-rotate-y {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateY(0);
}

@property --tw-rotate-z {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateZ(0);
}

@property --tw-skew-x {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: skewX(0);
}

@property --tw-skew-y {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: skewY(0);
}"
Expand Down Expand Up @@ -4545,31 +4545,31 @@ test('rotate-y', async () => {
}

@property --tw-rotate-x {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateX(0);
}

@property --tw-rotate-y {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateY(0);
}

@property --tw-rotate-z {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateZ(0);
}

@property --tw-skew-x {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: skewX(0);
}

@property --tw-skew-y {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: skewY(0);
}"
Expand Down Expand Up @@ -4623,31 +4623,31 @@ test('rotate-z', async () => {
}

@property --tw-rotate-x {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateX(0);
}

@property --tw-rotate-y {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateY(0);
}

@property --tw-rotate-z {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateZ(0);
}

@property --tw-skew-x {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: skewX(0);
}

@property --tw-skew-y {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: skewY(0);
}"
Expand Down Expand Up @@ -4698,31 +4698,31 @@ test('skew', async () => {
}

@property --tw-rotate-x {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateX(0);
}

@property --tw-rotate-y {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateY(0);
}

@property --tw-rotate-z {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateZ(0);
}

@property --tw-skew-x {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: skewX(0);
}

@property --tw-skew-y {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: skewY(0);
}"
Expand Down Expand Up @@ -4769,31 +4769,31 @@ test('skew-x', async () => {
}

@property --tw-rotate-x {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateX(0);
}

@property --tw-rotate-y {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateY(0);
}

@property --tw-rotate-z {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateZ(0);
}

@property --tw-skew-x {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: skewX(0);
}

@property --tw-skew-y {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: skewY(0);
}"
Expand Down Expand Up @@ -4840,31 +4840,31 @@ test('skew-y', async () => {
}

@property --tw-rotate-x {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateX(0);
}

@property --tw-rotate-y {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateY(0);
}

@property --tw-rotate-z {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateZ(0);
}

@property --tw-skew-x {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: skewX(0);
}

@property --tw-skew-y {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: skewY(0);
}"
Expand Down Expand Up @@ -5244,31 +5244,31 @@ test('transform', async () => {
}

@property --tw-rotate-x {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateX(0);
}

@property --tw-rotate-y {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateY(0);
}

@property --tw-rotate-z {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: rotateZ(0);
}

@property --tw-skew-x {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: skewX(0);
}

@property --tw-skew-y {
syntax: "<transform-function>";
syntax: "*";
inherits: false;
initial-value: skewY(0);
}"
Expand Down
10 changes: 5 additions & 5 deletions packages/tailwindcss/src/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1317,11 +1317,11 @@ export function createUtilities(theme: Theme) {

let transformProperties = () =>
atRoot([
property('--tw-rotate-x', 'rotateX(0)', '<transform-function>'),
property('--tw-rotate-y', 'rotateY(0)', '<transform-function>'),
property('--tw-rotate-z', 'rotateZ(0)', '<transform-function>'),
property('--tw-skew-x', 'skewX(0)', '<transform-function>'),
property('--tw-skew-y', 'skewY(0)', '<transform-function>'),
property('--tw-rotate-x', 'rotateX(0)'),
property('--tw-rotate-y', 'rotateY(0)'),
property('--tw-rotate-z', 'rotateZ(0)'),
property('--tw-skew-x', 'skewX(0)'),
property('--tw-skew-y', 'skewY(0)'),
])

for (let axis of ['x', 'y', 'z']) {
Expand Down