Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upMake CSS minifying compatible with calc() CSS function #9027
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hi @sambolek |
This comment has been minimized.
This comment has been minimized.
Fixed minification test. Also added a css class for scenario I mentioned in initial comment https://github.com/magento/magento2/pull/9027/files#diff-fc5a29319a5c4fcef6f8eb67024ebb20 which checks if calc is minified correctly. |
This comment has been minimized.
This comment has been minimized.
What about files like: Should those be updated to reflect the version change too? |
This comment has been minimized.
This comment has been minimized.
Added test for issue #6822 , as this update would fix it as well. |
This comment has been minimized.
This comment has been minimized.
tubalmartin
commented
Apr 4, 2017
•
Just to let you know guys, as the maintainer of YUI-CSS-compressor-PHP-port, that I've just released v3.0.0 which is the most stable release to date. Updating to this version is strongly recommended. |
This comment has been minimized.
This comment has been minimized.
Hi Túbal, @vrann @ishakhsuvarov Will look into tests once they're run. For some reason they don't even start for some time, once I push a few commits in - is that intended behavior on Travis CI? |
This comment has been minimized.
This comment has been minimized.
@sambolek Looks good to me, however we need to verify that nothing was broken by version bump. |
This comment has been minimized.
This comment has been minimized.
Hi @ishakhsuvarov Could you please give some input about my comment above, do this files need changing. If so, that would be the process to update them? |
This comment has been minimized.
This comment has been minimized.
@sambolek I'll try to run the full functional tests suite for starters, then we will continue with the rest, if you are ok with it :) |
This comment has been minimized.
This comment has been minimized.
Sure. |
This comment has been minimized.
This comment has been minimized.
@sambolek Thank you for the contribution |
sambolek commentedMar 27, 2017
•
edited by ishakhsuvarov
See #8552
Description
Whitespace around "-" sign got removed during CSS minification due to regex done in tubalmartin/cssmin, which got fixed in tubalmartin/YUI-CSS-compressor-PHP-port@59e5e8b#diff-80f11f7052c350cef68c3041a5479789R588
Fixed Issues (if relevant)
Manual testing scenarios
body{width: calc((100% / 12 * 2) - 10px);}
Contribution checklist