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

Don't register properties with types unless necessary #15215

Merged
merged 3 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix scanning classes delimited by tab characters ([#15169](https://github.com/tailwindlabs/tailwindcss/pull/15169))
- Ensure opacity modifiers and semi-transparent gradients render correctly by default in Safari ([#15201](https://github.com/tailwindlabs/tailwindcss/pull/15201))
- Fix element size thrashing when transitioning gradients on elements with a defined font-size in Safari ([#15216](https://github.com/tailwindlabs/tailwindcss/pull/15216))
- Ensure `translate-*` utilities work with arbitrary values that use `calc(…)` ([#15215](https://github.com/tailwindlabs/tailwindcss/pull/15215))
- Ensure gradient stop position utilities work with arbitrary values that use `calc(…)` ([#15215](https://github.com/tailwindlabs/tailwindcss/pull/15215))

### Changed

- Interpolate gradients using OKLAB instead of OKLCH by default ([#15201](https://github.com/tailwindlabs/tailwindcss/pull/15201))
- Error when `layer(…)` in `@import` is not first in the list of functions/conditions ([#15109](https://github.com/tailwindlabs/tailwindcss/pull/15109))
- Use unitless line-height values for font-size variables in default theme ([#15216](https://github.com/tailwindlabs/tailwindcss/pull/15216))
- Don't register custom properties with explicit types unless those custom properties need to be animateable ([#15215](https://github.com/tailwindlabs/tailwindcss/pull/15215))

## [4.0.0-beta.2] - 2024-11-22

Expand Down
18 changes: 9 additions & 9 deletions packages/tailwindcss/src/__snapshots__/utilities.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ exports[`border-* 1`] = `
}

@property --tw-border-style {
syntax: "<custom-ident>";
syntax: "*";
inherits: false;
initial-value: solid;
}"
Expand Down Expand Up @@ -260,7 +260,7 @@ exports[`border-b-* 1`] = `
}

@property --tw-border-style {
syntax: "<custom-ident>";
syntax: "*";
inherits: false;
initial-value: solid;
}"
Expand Down Expand Up @@ -393,7 +393,7 @@ exports[`border-e-* 1`] = `
}

@property --tw-border-style {
syntax: "<custom-ident>";
syntax: "*";
inherits: false;
initial-value: solid;
}"
Expand Down Expand Up @@ -526,7 +526,7 @@ exports[`border-l-* 1`] = `
}

@property --tw-border-style {
syntax: "<custom-ident>";
syntax: "*";
inherits: false;
initial-value: solid;
}"
Expand Down Expand Up @@ -659,7 +659,7 @@ exports[`border-r-* 1`] = `
}

@property --tw-border-style {
syntax: "<custom-ident>";
syntax: "*";
inherits: false;
initial-value: solid;
}"
Expand Down Expand Up @@ -792,7 +792,7 @@ exports[`border-s-* 1`] = `
}

@property --tw-border-style {
syntax: "<custom-ident>";
syntax: "*";
inherits: false;
initial-value: solid;
}"
Expand Down Expand Up @@ -925,7 +925,7 @@ exports[`border-t-* 1`] = `
}

@property --tw-border-style {
syntax: "<custom-ident>";
syntax: "*";
inherits: false;
initial-value: solid;
}"
Expand Down Expand Up @@ -1058,7 +1058,7 @@ exports[`border-x-* 1`] = `
}

@property --tw-border-style {
syntax: "<custom-ident>";
syntax: "*";
inherits: false;
initial-value: solid;
}"
Expand Down Expand Up @@ -1191,7 +1191,7 @@ exports[`border-y-* 1`] = `
}

@property --tw-border-style {
syntax: "<custom-ident>";
syntax: "*";
inherits: false;
initial-value: solid;
}"
Expand Down
8 changes: 4 additions & 4 deletions packages/tailwindcss/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,19 +302,19 @@ describe('@apply', () => {
}

@property --tw-translate-x {
syntax: "<length> | <percentage>";
syntax: "*";
inherits: false;
initial-value: 0;
}

@property --tw-translate-y {
syntax: "<length> | <percentage>";
syntax: "*";
inherits: false;
initial-value: 0;
}

@property --tw-translate-z {
syntax: "<length>";
syntax: "*";
inherits: false;
initial-value: 0;
}"
Expand Down Expand Up @@ -717,7 +717,7 @@ describe('sorting', () => {
}

@property --tw-space-x-reverse {
syntax: "<number>";
syntax: "*";
inherits: false;
initial-value: 0;
}"
Expand Down
Loading