Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Aug 18, 2015
  1. Adds a test for inlining content with protocol-less URLs.

    This refers to #632, but just confirms we do the right thing.
Commits on Aug 17, 2015
  1. Fixes #607 - adds better rule reordering.

    Apparently IDs coupled with tag selectors are safe for reordering too.
Commits on Aug 16, 2015
  1. Fixes #635 - adds safer `0%` optimizations.

    Apparently we can't turn `0%` into `0` for height & max-height where
    layout breaks, see:
  2. Fixes #618 - adds less restricitve function validation.

    To support various functions which may allow URLs inside them, like
    `image-src()` we need a less restrictve validation regex.
  3. Fixes #645 - adds bottom to top `media` merging.

    In addition to top to bottom media merging we now support the reverse
    order one. It works similar way as same selector two-way merging - see
    Consider this example where top to bottom is not possible but reverse is:
    @media (max-width:768px){.one{padding-right:0}}
    @media (max-width:768px){.one{margin:0}}
  4. Fixes #648 - adds property level at-rule support.

    Polymer uses `@apply` rule on property level, so we support it now too.
  5. Adds inferring proxy settings from environment variables.

    It is common for *nix and Windows programs to use to HTTP_PROXY
    variable to identify proxy settings. So do we, e.g.
    HTTP_PROXY=http://proxy-host:proxy-port cleancss styles.css
  6. Fixes #612 - adds HTTP proxy support for `@import` inlining.

    Jule Marcoueille authored committed
    By passing a full href to request proxy we can instruct it to
    pass the request to the upstream server.
    To use a proxy (via API), pass the proxy hostname and port to the
    inliner options, e.g.
    new CleanCSS({
      inliner: {
        request: {
          hostname: 'proxy host',
          port: 'proxy port'
    Specs by @jakubpawlowicz.
Commits on Aug 13, 2015
  1. Adds unit compatibility switches to disable length optimizations.

    You can disable px -> (in|pc|pt) transforations with compatibility unit
    switches. Tied to #625.
  2. Fixes #625 - adds length unit conversions.

    * Converts px -> in (96px -> 1in);
    * Converts px -> pc (16px -> 1pc);
    * Converts px -> pt (4px -> 3pt).
Commits on Aug 12, 2015
  1. Fixes #644 - adds time unit optimizations.

    It adds the following optimizations:
    * second -> milisecond, e.g. 0.005s -> 5ms
    * milisecond -> second, e.g. 500ms -> .5s
Commits on Aug 9, 2015
  1. Fixes #640 - URI processing regression.

    The fix to #633 included a regression in URI processing as the
    algorithm introduced should only be applied to data URIs.
Commits on Aug 7, 2015
  1. @vlajos
  2. Merge pull request #639 from yomed/plugin-list

    Updates plugin list with lasso-clean-css
  3. @yomed
Commits on Aug 6, 2015
  1. Fixes #634 - merging :placeholder selectors.

    :placeholder is also not widely supported (IE10+) so we need to
    skip merging it.
  2. Fixes #629 - source maps & background shorthands.

    Properly handles cases when `background-color` is broken up in the
    presence of source maps.
    That happened because value array was coerced into a string which,
    in presence of a source map, has also source info.
  3. Fixes #633 - handling data URI with brackets.

    We need to identify cases when data URI are escaped (and brackets
    are not) so we can get the whole URI.
  4. Fixes #630 - vendor prefixed flex optimizations.

    It's not only flex & flex-basis which should not be optimized but
    also their vendor prefixed counterparts.
Commits on Aug 4, 2015
Commits on Jul 29, 2015
  1. Fixes #616 - ordering in restructuring.

    Reverses the order in which properties are traversed so
    ones appearing last are processed first, resulting in a
    correct restructuring when a longhand appears after a shorthand.
Commits on Jul 22, 2015
  1. Unifies wrappers for simple & advanced optimizations.

    Previously we had two wrappings, one for simple optimizations (just importance
    and hacks), and other for advanced optimizations.
    Right now it's just one (the latter) with simple optimizations adapted to
    use the wrapping. This way it's more readable & prepares us for simplifying
    the code further.
Commits on Jul 14, 2015
  1. Fixes #620 - `bold` style in font shorthands.

    Looking forward to an ultimate fix with #254.
Commits on Jul 10, 2015
Commits on Jul 1, 2015
  1. Fixes #608 - custom URI protocols handling.

    We were not treating custom URI protocols as remote ones so
    they were rewritten as local ones.
Commits on Jun 24, 2015
  1. Fixes #610 - `border:inherit` restoring.

    Apparently `withoutDefaults` restoring suffered the same issue as
    `background` property restoring - see #563.
Something went wrong with that request. Please try again.