Skip to content

Convert the percentage in the scale property or scale() to a number#1174

Merged
devongovett merged 1 commit intoparcel-bundler:masterfrom
yisibl:add-convert_percentage_to_number
Mar 9, 2026
Merged

Convert the percentage in the scale property or scale() to a number#1174
devongovett merged 1 commit intoparcel-bundler:masterfrom
yisibl:add-convert_percentage_to_number

Conversation

@yisibl
Copy link
Contributor

@yisibl yisibl commented Mar 6, 2026

  • Use shared scale component parsing so individual scale and transform scale functions normalize percentages into numbers consistently.
  • Keep serialization canonical by converting scale values through numeric output paths, including scaleX/Y/Z.
  • Expand transform tests to mirror the individual scale percentage cases one-for-one, and add direct AST serialization coverage for both scale and transform.

- Use shared scale component parsing so individual `scale` and transform scale functions normalize percentages into numbers consistently.
- Keep serialization canonical by converting scale values through numeric output paths, including `scaleX/Y/Z`.
- Expand transform tests to mirror the individual `scale` percentage cases one-for-one, and add direct AST serialization coverage for both `scale` and `transform`.
@yisibl
Copy link
Contributor Author

yisibl commented Mar 6, 2026

@devongovett PTAL

@devongovett devongovett merged commit 201c4db into parcel-bundler:master Mar 9, 2026
3 checks passed
@yisibl yisibl deleted the add-convert_percentage_to_number branch March 9, 2026 02:48
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