Skip to content

Conversation

@avacariu
Copy link
Contributor

@avacariu avacariu commented Nov 1, 2015

Fixes #3.

Removing the m?s from _zero_req_unit_re would've been enough to leave the units on the value, but it would've left 0.0 and .0 uncompressed, so I created a new RE to handle that.

In terms of maintaining compatibility with YUI, I'm planning to do a similar PR against that, too. There's already a PR to fix this issue, but it's been abandoned because of lack of tests; that PR also doesn't handle 0.0 and .0 (it just removes the m?s).

Browsers ignore declarations in which there is a missing unit literal after the 0, since omitting the unit on non-length data types is considered invalid.
1st1 added a commit that referenced this pull request Nov 7, 2015
Leave units on 0 time values.
@1st1 1st1 merged commit 233b7c9 into sprymix:master Nov 7, 2015
@1st1
Copy link
Contributor

1st1 commented Nov 7, 2015

Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants