-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix inline block styles minification issues with calc() #29554
Conversation
Size Change: +1.22 kB (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would appreciate a check from someone else because my approval is based mostly on the unit test added 😄
It would be practical to have more test data to cover some more complex CSS syntax, maybe something for animations, colors or fonts.
Fair point @gziolo |
A test case with CSS variables might be a good candidate. @jasmussen, you are the expert, any ideas? |
I appreciate your kind words, but I have a sense that Ari is stronger in custom properties than I am :) |
I added a test for a css-var & calc() combo 😺 |
Description
Fixes #29518
How has this been tested?
calc
.width:calc(50%-.625em)
. After the PR, the spaces insidecalc()
are not stripped so the result iswidth:calc(50% - .625em)
Types of changes
Used the regex from https://stackoverflow.com/a/44350195 instead of a previous buggy one that didn't take calc into account.
Checklist: