Closed lencioni closed 12 years ago
FWIW, according to Mozilla's website, "While unitless zero is allowed for <length>, it's invalid for all other units." This includes <time> units. So, this may require some adjustment to the regular expression that removes units from zeroes: https://github.com/peteboere/css-crush/blob/master/lib/Core.php#L883
Fixed in master branch
I am working with a transition delay that changes from
1s
to0s
on hover. This makes the effect take place immediately when hovered, and it will linger for a second after hover is lost. Like this (http://dabblet.com/gist/2353159):It seems that if the "s" is removed from the "0" (which CSS Crush is doing), then Firefox (at least FF 11.0) ignores the rule (http://dabblet.com/gist/2353144):
This is potentially only an issue with the
-moz-*
prefix, so the "s" could still probably be removed for other prefixes. Also, it is possible that this is a bug in Firefox, I'm not sure.As a temporary workaround, I am using
0.0000001s
instead of0s
.