Open tomhodgins opened 7 years ago
div { background: lime; width: calc((100px - 1em) + (-50px + 1em)); height: calc((100px - 1em) + (-50px + 1em)); }
div{background:lime;width:50px;height:50px}
50px
div{background:lime;width:calc((100px - 1em) + (-50px + 1em));height:calc((100px - 1em) + (-50px + 1em))}
- 1em
+ 1em
calc((100px) + (-50px))
calc(100px - 50px)
correct minification
50px
by eliminating things that cancel outCSSnano output
- 1em
and+ 1em
cancel each other outcalc((100px) + (-50px))
can be further simplified ascalc(100px - 50px)
50px