question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option to disable units optimization

See original GitHub issue

Please, provide an option to disable unit optimization. There is some cases when it breaks the code:

font-size: calc(100% + 0px);

This code adds 1px to font-size, tested in latest Google Chrome and Firefox. When gone through clean-css it becomes this:

font-size: calc(100% + 0);

Of course now it’s not working. I know it’s a non-standard behavior but I prefer to use it anyway.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
azinasilicommented, May 12, 2015

Sure. I’m using CSSMin for grunt which is using the latest clean-css. If I where to have flex: 1 0 0% in my source after running the task would output flex: 1 0 0. Although this is normally desired it creates an issue for IE 10-11. More information about the bug can be found at this repo. To get around the bug I can write out the flex properties individually, however I prefer to be able to use shorthand where ever I can. I can try to get more info if you need anything else.

0reactions
jakubpawlowiczcommented, Jun 14, 2015

@azinasili fixed in 3.3.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Option to disable units optimization · Issue #521 · clean-css/clean ...
Please, provide an option to disable unit optimization. There is some cases when it breaks the code: font-size: calc(100% + 0px); This code...
Read more >
Optimize Options (Using the GNU Compiler Collection (GCC))
Most optimizations are completely disabled at -O0 or if an -O level is not set on the command line, even if individual optimization...
Read more >
gcc disable optimization for a function - Plastic & Products Marketing
The gcc option -O enables different levels of optimization. ... like Interprocedural Optimization (IPO), are not enabled or disabled during translation unit ......
Read more >
Add an option to disable debugging/enable optimization when ...
There should be an option to fully enable optimization when building an application as to automatically remove performance impacts caused by diagram.
Read more >
2.4.1.2. Disabling or Enabling Physical Synthesis Optimization
To disable or enable physical synthesis optimization : Click Assignments > Settings > Compiler Settings. To enable retiming, combinational ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found