Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix(postcss-convert-values): add transformCustomProperties option#1769

Merged
ludofischer merged 1 commit into
cssnano:mastercssnano/cssnano:masterfrom
dkryaklin:fix/postcss-convert-values-transform-custom-properties-cleandkryaklin/cssnano:fix/postcss-convert-values-transform-custom-properties-cleanCopy head branch name to clipboard
Apr 4, 2026
Merged

fix(postcss-convert-values): add transformCustomProperties option#1769
ludofischer merged 1 commit into
cssnano:mastercssnano/cssnano:masterfrom
dkryaklin:fix/postcss-convert-values-transform-custom-properties-cleandkryaklin/cssnano:fix/postcss-convert-values-transform-custom-properties-cleanCopy head branch name to clipboard

Conversation

@dkryaklin
Copy link
Copy Markdown
Contributor

postcss-convert-values currently skips all custom property declarations to avoid unsafe transformations. However, some users explicitly want value conversion inside custom properties (e.g. 500ms.5s, 0.485.485).

Adds a transformCustomProperties option (default: false to preserve existing behavior). Set to true to enable value conversions inside custom property declarations.

cssnano({ preset: ['default', { convertValues: { transformCustomProperties: true } }] })

Relates to #1488.

@ludofischer ludofischer force-pushed the fix/postcss-convert-values-transform-custom-properties-clean branch from d26cb6c to 812ba86 Compare April 4, 2026 11:41
@ludofischer ludofischer merged commit a282215 into cssnano:master Apr 4, 2026
13 checks passed
@dkryaklin dkryaklin deleted the fix/postcss-convert-values-transform-custom-properties-clean branch April 4, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.