Josee9988 / MinifyAll

A 𝗩𝗦𝗖𝗼𝗱𝗲 𝗺𝗢𝗻𝗢𝗳𝗢𝗲𝗿 for JS, JSON/C, CSS, and HTML, you will love its simplicity! 🌟 π˜Ύπ™€π™’π™₯π™§π™šπ™¨π™¨ and π™œπ™―π™žπ™₯ files and folders πŸ“¦ Reduce your bundle and file sizes with lightning speed ⚑
https://minifyall.jgracia.es/
GNU General Public License v3.0
71 stars 10 forks source link

[Bug] Prevent unit removal on zero values within calc() function #142

Open ghost opened 2 years ago

ghost commented 2 years ago

🐞 Bug Report

Describe the bug


Is this a regression?

This I can't tell because I just installed this plugin for the first time


To Reproduce

  1. Enter some css sample like .element { width: calc( 100px + var(--test, 0px)) }
  2. Let the extension minify the code
  3. Test the minified style in the browser

Expected behaviour


Media prove

You can live test this here https://developer.mozilla.org/en-US/docs/Web/CSS/calc()


Your environment

welcome[bot] commented 2 years ago

Thanks for opening your first issue in Josee9988/project-template! Be sure to follow the issue template and provide every bit of information to help the developers!