Skip to content

feat: support calc in <integer>#1122

Draft
yisibl wants to merge 6 commits intoparcel-bundler:masterfrom
yisibl:add-integer-calc
Draft

feat: support calc in <integer>#1122
yisibl wants to merge 6 commits intoparcel-bundler:masterfrom
yisibl:add-integer-calc

Conversation

@yisibl
Copy link
Copy Markdown
Contributor

@yisibl yisibl commented Jan 7, 2026

No description provided.

yisibl added 5 commits January 7, 2026 04:53
CSSInteger is used as a field type in MediaCondition and ParsedComponent
enums, which require serde, jsonschema, visitor, and into_owned derives
when their respective features are enabled.

This commit adds the necessary conditional derive attributes to fix
compilation errors when running `cargo test --all-features`.
Comment thread src/lib.rs
minify_test(".order3 { order: calc(-6 + calc(2 * 3)) }", ".order3{order:0}");
minify_test(".order4 { order: calc(0) }", ".order4{order:0}");
minify_test(".order5 { order: calc(-0) }", ".order5{order:0}");
minify_test(".order6 { order: calc(0.5) }", ".order6{order:1}");
Copy link
Copy Markdown
Contributor Author

@yisibl yisibl Feb 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: What happens when Chrome uses calc(decimal) before implementing this feature?
https://chromestatus.com/feature/5656451751084032

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.

1 participant