[ 3 posts ]

Alexander Myadzel

  • Username: myadzel
  • Joined: Sat Jan 21, 2012 5:47 am
  • Posts: 1
  • Offline
  • Profile

Why YUI Compressor does not minimize leading zero...

Post Posted: Sat Jan 21, 2012 5:50 am
+0-
...(for floating-point numbers) in CSS-rules with the negative margin?

For example, a selector like

Code:
. t {
    margin: 0 0.5em 1em-0.2em;
}


compressed to
Code:
.t{margin:0 .5em 1em -0.2em}


Perhaps this is what an old bug in YUI Compressor.

Does anyone have any thoughts on this?

Tubal Martin

  • Username: tubalmartin
  • Joined: Mon Feb 02, 2009 4:59 am
  • Posts: 2
  • Offline
  • Profile
Tags:

Re: Why YUI Compressor does not minimize leading zero...

Post Posted: Tue Mar 20, 2012 8:29 am
+0-
It's something not implemented. However I wrote a PHP port (currently in use by Minify) that takes care of that: YUI compressor PHP port.

Iris Richardson

  • Username: Iris1788
  • Joined: Tue Sep 11, 2012 4:03 pm
  • Posts: 1
  • Offline
  • Profile

Re: Why YUI Compressor does not minimize leading zero...

Post Posted: Sat Sep 15, 2012 2:41 pm
+0-
Has this been implemented yet? If not, I am voting for it too! :) Leading zeroes can cause a lot of confusion, especially in floating point operations and not everyone is proficient with PHP or Minify...
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
cron