magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.48k stars 9.29k forks source link

calc(100% - 100px) break by minify #12794

Closed larsroettig closed 6 years ago

larsroettig commented 6 years ago

Preconditions

Steps to reproduce

  1. Define calc(100% - 100px)in stylesheet
  2. Active css minify

Expected result

  1. In css.min is definedcalc(100% - 100px)

Actual result

  1. In css.min is definedcalc(100%-100px)
  2. It is not allowed to remove whitespaces before and after - breaks the stylesheet

Possible Solution

Info

https://www.w3schools.com/cssref/func_calc.asp

sydekumf commented 6 years ago

Duplicate of: https://github.com/magento/magento2/issues/8552