clean-css.git
10 years agoMerge pull request #319 from aymericbeaumet/master
Goal Smashers Dev Team [Tue, 22 Jul 2014 20:32:04 +0000 (21:32 +0100)]
Merge pull request #319 from aymericbeaumet/master

Updates readme with metalsmith's plugin info.

10 years agoUpdate readme
Aymeric Beaumet [Mon, 21 Jul 2014 01:54:44 +0000 (03:54 +0200)]
Update readme

10 years agoVersion 2.2.8.
Jakub Pawlowicz [Mon, 14 Jul 2014 21:44:28 +0000 (22:44 +0100)]
Version 2.2.8.

10 years agoFixes #313 - processing comment marks in urls.
Jakub Pawlowicz [Mon, 14 Jul 2014 21:41:46 +0000 (22:41 +0100)]
Fixes #313 - processing comment marks in urls.

10 years agoFixes #315 - rgba/hsla -> transparent in gradients.
Jakub Pawlowicz [Sun, 13 Jul 2014 10:56:10 +0000 (11:56 +0100)]
Fixes #315 - rgba/hsla -> transparent in gradients.

Apparently Safari/Firefox does not implement transparent correctly thus
it gives wrong output when replaced.

10 years agoVersion 2.2.7.
Jakub Pawlowicz [Thu, 10 Jul 2014 22:04:45 +0000 (23:04 +0100)]
Version 2.2.7.

10 years agoFixes #312 - merging backgrounds when one property is not repeated.
Jakub Pawlowicz [Wed, 9 Jul 2014 22:33:35 +0000 (23:33 +0100)]
Fixes #312 - merging backgrounds when one property is not repeated.

10 years agoFixes #304 - merging multiple backgrounds.
Jakub Pawlowicz [Tue, 8 Jul 2014 23:28:03 +0000 (00:28 +0100)]
Fixes #304 - merging multiple backgrounds.

10 years agoVersion 2.2.6.
Jakub Pawlowicz [Sat, 5 Jul 2014 13:28:16 +0000 (14:28 +0100)]
Version 2.2.6.

10 years agoAdds faster quote matching in QuoteScanner.
Jakub Pawlowicz [Sat, 5 Jul 2014 13:25:37 +0000 (14:25 +0100)]
Adds faster quote matching in QuoteScanner.

10 years agoFixes #308 - parsing comments in quoted urls.
Jakub Pawlowicz [Sat, 5 Jul 2014 11:08:07 +0000 (12:08 +0100)]
Fixes #308 - parsing comments in quoted urls.

10 years agoImproves QuoteScanner to handle comments correctly.
Jakub Pawlowicz [Sat, 5 Jul 2014 12:58:17 +0000 (13:58 +0100)]
Improves QuoteScanner to handle comments correctly.

10 years agoFixes #311 - exception with leading/trailing decimal point.
Jonathan-L [Thu, 3 Jul 2014 11:52:45 +0000 (12:52 +0100)]
Fixes #311 - exception with leading/trailing decimal point.

10 years agoVersion 2.2.5.
Jakub Pawlowicz [Sun, 29 Jun 2014 22:19:18 +0000 (23:19 +0100)]
Version 2.2.5.

10 years agoReplaces same horizontal & vertical value in border-radius.
Jakub Pawlowicz [Sun, 29 Jun 2014 22:16:46 +0000 (23:16 +0100)]
Replaces same horizontal & vertical value in border-radius.

* border-radius:1em/1em can be turned into border-radius:1em.

10 years agoRemoves extra spaces around / in border-radius.
Jakub Pawlowicz [Sun, 29 Jun 2014 21:28:03 +0000 (22:28 +0100)]
Removes extra spaces around / in border-radius.

* Apparently horizontal & vertical values can be separated by '/' without spaces around - thanks @XhmikosR.

10 years agoShortens `border-radius` addFourValueShorthand calls.
Jakub Pawlowicz [Sun, 29 Jun 2014 20:57:12 +0000 (21:57 +0100)]
Shortens `border-radius` addFourValueShorthand calls.

10 years agoRefactors addFourValueShorthand to accept hash of options.
Jakub Pawlowicz [Sun, 29 Jun 2014 20:41:47 +0000 (21:41 +0100)]
Refactors addFourValueShorthand to accept hash of options.

10 years agoFixes #305 - allows width keywords in border-width.
Eric Anderson [Fri, 27 Jun 2014 22:19:20 +0000 (18:19 -0400)]
Fixes #305 - allows width keywords in border-width.

When not all sides are specified for things like border/padding/margin
it appears clean-css attempts to normalize the data
(i.e "2px 5px" -> "2px 5px 2px 5px"). This normalization appears to
only look for things matched to cssUnitAnyRegexStr. cssUnitAnyRegexStr
doesn't include width keywords.

The width keywords were already specified for validating outline width.
This commit renames that list to be more generic (just widthKeywords). It
then adds this list to the cssUnitAnyRegexStr regexp.

This commit fixes #305. In addition I added "initial" to the list of
width keywords to fix gruntjs/grunt-contrib-cssmin#103 which is the
issue that lead me to writing this patch. So this commit should solve
that as well.

10 years agoVersion 2.2.4.
Jakub Pawlowicz [Fri, 27 Jun 2014 22:09:08 +0000 (23:09 +0100)]
Version 2.2.4.

10 years agoFixes #301 - proper border-radius processing.
Jakub Pawlowicz [Fri, 27 Jun 2014 22:04:33 +0000 (23:04 +0100)]
Fixes #301 - proper border-radius processing.

* Makes sure horizontal / vertical values of border-radius are respected.

10 years agoMerge pull request #303 from itrelease/master
Goal Smashers Dev Team [Thu, 26 Jun 2014 21:11:46 +0000 (22:11 +0100)]
Merge pull request #303 from itrelease/master

Preserve viewport units

10 years agoPreserve viewport units
Anton Byrna [Thu, 26 Jun 2014 10:34:12 +0000 (14:34 +0400)]
Preserve viewport units

10 years agoVersion 2.2.3.
Jakub Pawlowicz [Tue, 24 Jun 2014 21:28:12 +0000 (22:28 +0100)]
Version 2.2.3.

10 years agoFixes #302 - handling of outline-style: auto.
Jakub Pawlowicz [Tue, 24 Jun 2014 21:27:12 +0000 (22:27 +0100)]
Fixes #302 - handling of outline-style: auto.

10 years agoFixes History.md links to version diffs.
Jakub Pawlowicz [Wed, 18 Jun 2014 21:52:00 +0000 (22:52 +0100)]
Fixes History.md links to version diffs.

10 years agoVersion 2.2.2.
Jakub Pawlowicz [Wed, 18 Jun 2014 21:50:16 +0000 (22:50 +0100)]
Version 2.2.2.

10 years agoFixes #297 - box-shadow zeros minification.
Jakub Pawlowicz [Wed, 18 Jun 2014 21:43:09 +0000 (22:43 +0100)]
Fixes #297 - box-shadow zeros minification.

10 years agoMerge pull request #300 from poying/master
Goal Smashers Dev Team [Tue, 17 Jun 2014 06:52:50 +0000 (07:52 +0100)]
Merge pull request #300 from poying/master

Adds reference to component-builder2 build tool.

10 years agoadd component-builder2
Po-Ying Chen [Tue, 17 Jun 2014 00:25:37 +0000 (08:25 +0800)]
add component-builder2

10 years agoMerge pull request #296 from shinnn/master
Goal Smashers Dev Team [Sat, 14 Jun 2014 18:37:31 +0000 (19:37 +0100)]
Merge pull request #296 from shinnn/master

Add list of clean-css plugins, instead of uncss's.

10 years agoVersion 2.2.1.
Jakub Pawlowicz [Sat, 14 Jun 2014 08:31:11 +0000 (09:31 +0100)]
Version 2.2.1.

10 years agoFixes #294 - space after rgba/hsla is required in IE<=11.
Jakub Pawlowicz [Sat, 14 Jun 2014 08:25:47 +0000 (09:25 +0100)]
Fixes #294 - space after rgba/hsla is required in IE<=11.

* #165 introduced the bug.

10 years agoAdd list of clean-css plugins, instead of uncss's
shinnn [Sat, 14 Jun 2014 08:26:14 +0000 (17:26 +0900)]
Add list of clean-css plugins, instead of uncss's

10 years agoFixes new property optimizer for 'none' values.
Jakub Pawlowicz [Sat, 14 Jun 2014 08:01:16 +0000 (09:01 +0100)]
Fixes new property optimizer for 'none' values.

10 years agoVersion 2.2.0.
Jakub Pawlowicz [Wed, 11 Jun 2014 21:20:11 +0000 (22:20 +0100)]
Version 2.2.0.

10 years agoFixes #276 - unicode content mistakenly taken as IE hacks.
Jakub Pawlowicz [Wed, 11 Jun 2014 21:04:26 +0000 (22:04 +0100)]
Fixes #276 - unicode content mistakenly taken as IE hacks.

10 years agoMoves escaping specs under cssContext.
Jakub Pawlowicz [Wed, 11 Jun 2014 21:02:19 +0000 (22:02 +0100)]
Moves escaping specs under cssContext.

10 years agoUpdates History.md with #293 fix.
Jakub Pawlowicz [Wed, 11 Jun 2014 20:56:24 +0000 (21:56 +0100)]
Updates History.md with #293 fix.

10 years agoMerge pull request #293 from leevigraham/master
Goal Smashers Dev Team [Wed, 11 Jun 2014 06:52:34 +0000 (07:52 +0100)]
Merge pull request #293 from leevigraham/master

Honour escaped @ symbols in classnames and ids

10 years agoHonour escaped @ symbols in classnames and ids
Leevi Graham [Tue, 10 Jun 2014 08:39:51 +0000 (18:39 +1000)]
Honour escaped @ symbols in classnames and ids

Fixes: https://github.com/GoalSmashers/clean-css/issues/292

10 years agoImproves protocol import tests to avoid DNS lookup.
Jakub Pawlowicz [Mon, 9 Jun 2014 22:40:42 +0000 (23:40 +0100)]
Improves protocol import tests to avoid DNS lookup.

10 years agoDisables new property optimizer if body is not optimizable.
Jakub Pawlowicz [Sun, 8 Jun 2014 20:31:17 +0000 (21:31 +0100)]
Disables new property optimizer if body is not optimizable.

10 years agoAdds caching components.length in shorthand compactor.
Jakub Pawlowicz [Sun, 8 Jun 2014 20:12:19 +0000 (21:12 +0100)]
Adds caching components.length in shorthand compactor.

10 years agoAdds faster Token#detokenize.
Jakub Pawlowicz [Sun, 8 Jun 2014 19:51:01 +0000 (20:51 +0100)]
Adds faster Token#detokenize.

10 years agoMerge pull request #291 from tomByrer/patch-1
Goal Smashers Dev Team [Sun, 8 Jun 2014 17:02:13 +0000 (18:02 +0100)]
Merge pull request #291 from tomByrer/patch-1

Adds references to Gulp, Broccoli, Brunch, & Addy's build-tools in readme.

10 years ago+ Gulp, Broccoli, Brunch, & Addy's build-tools
tomByrer [Sun, 8 Jun 2014 15:49:02 +0000 (09:49 -0600)]
+ Gulp, Broccoli, Brunch, & Addy's build-tools

10 years agoFixes list-style-* advanced processing.
Jakub Pawlowicz [Sun, 8 Jun 2014 14:07:25 +0000 (15:07 +0100)]
Fixes list-style-* advanced processing.

10 years agoFixes #210 - adds temporary workaround for aggressive property merging.
Jakub Pawlowicz [Sun, 8 Jun 2014 13:24:04 +0000 (14:24 +0100)]
Fixes #210 - adds temporary workaround for aggressive property merging.

Using `--skip-aggressive-merging` / `noAggressiveMerging` switch skips property merging based on order.
Will be fixed in #290.

10 years agoAdds browserify info to changelog.
Jakub Pawlowicz [Sat, 7 Jun 2014 22:08:24 +0000 (23:08 +0100)]
Adds browserify info to changelog.

10 years agoMerge pull request #262 from XhmikosR/browserify
Goal Smashers Dev Team [Sat, 7 Jun 2014 21:29:53 +0000 (22:29 +0100)]
Merge pull request #262 from XhmikosR/browserify

Adds browserify support.

10 years agoFixes #288 - adds smarter expression parsing.
Jakub Pawlowicz [Sat, 7 Jun 2014 21:14:09 +0000 (22:14 +0100)]
Fixes #288 - adds smarter expression parsing.

10 years agoFixes #287 - adds `--rounding-precision` to control rounding precision.
Jakub Pawlowicz [Thu, 5 Jun 2014 22:34:41 +0000 (23:34 +0100)]
Fixes #287 - adds `--rounding-precision` to control rounding precision.

10 years agoAdd browserify support.
XhmikosR [Tue, 18 Mar 2014 05:56:50 +0000 (07:56 +0200)]
Add browserify support.

Use uglify-js2 to minify the browserify bundle.

10 years agoAdds minifying remote files directly from CLI.
Jakub Pawlowicz [Thu, 5 Jun 2014 21:43:33 +0000 (22:43 +0100)]
Adds minifying remote files directly from CLI.

10 years agoFixes #265 - adds support for multiple input files.
Jakub Pawlowicz [Wed, 4 Jun 2014 23:05:40 +0000 (00:05 +0100)]
Fixes #265 - adds support for multiple input files.

10 years agoFixes #246 - removes IE hacks when not in compatibility mode.
Jakub Pawlowicz [Tue, 3 Jun 2014 22:02:38 +0000 (23:02 +0100)]
Fixes #246 - removes IE hacks when not in compatibility mode.

10 years agoFixes #257 - turns hsla/rgba to transparent if possible.
Jakub Pawlowicz [Mon, 2 Jun 2014 22:19:33 +0000 (23:19 +0100)]
Fixes #257 - turns hsla/rgba to transparent if possible.

It's possible unless in compatibility mode as IE<9 understands transparent but does not rgba/hsla.

10 years agoMerge pull request #285 from shinnn/master
Goal Smashers Dev Team [Mon, 2 Jun 2014 07:00:48 +0000 (08:00 +0100)]
Merge pull request #285 from shinnn/master

Uses original JSHint instead of the fork.

10 years agoFixes #197 - merging borders by understandability.
Jakub Pawlowicz [Sun, 1 Jun 2014 21:29:32 +0000 (22:29 +0100)]
Fixes #197 - merging borders by understandability.

* Adds border processor so all border declarations are reprocessed into: <width> <style> <color>.

10 years agoUse original JSHint instead of fork
shinnn [Sun, 1 Jun 2014 12:34:24 +0000 (21:34 +0900)]
Use original JSHint instead of fork

10 years agoFix CI setting to pass the test against Node v0.8
shinnn [Sun, 1 Jun 2014 12:27:44 +0000 (21:27 +0900)]
Fix CI setting to pass the test against Node v0.8

10 years agoFixes #275 - -ms-transform translate/translate3d overriding.
Jakub Pawlowicz [Sat, 31 May 2014 20:45:53 +0000 (21:45 +0100)]
Fixes #275 - -ms-transform translate/translate3d overriding.

* Fixes similar cases for other prefixes and unprefixed transform.

10 years agoAdds a custom build on jshint compatible with node 0.8.x.
Jakub Pawlowicz [Sat, 31 May 2014 21:50:22 +0000 (22:50 +0100)]
Adds a custom build on jshint compatible with node 0.8.x.

10 years agoMerge pull request #277 from XhmikosR/master
Goal Smashers Dev Team [Sat, 26 Apr 2014 23:16:59 +0000 (00:16 +0100)]
Merge pull request #277 from XhmikosR/master

Update nock to 0.28.x.

10 years agoUpdate nock to 0.28.x.
XhmikosR [Fri, 25 Apr 2014 05:09:57 +0000 (08:09 +0300)]
Update nock to 0.28.x.

10 years agoMerge pull request #274 from XhmikosR/master
Goal Smashers Dev Team [Mon, 14 Apr 2014 19:03:04 +0000 (20:03 +0100)]
Merge pull request #274 from XhmikosR/master

README.md: switch to SVG badges.

10 years agoREADME.md: switch to SVG badges.
XhmikosR [Wed, 9 Apr 2014 08:09:04 +0000 (11:09 +0300)]
README.md: switch to SVG badges.

10 years agoMerge pull request #271 from XhmikosR/jshint
Goal Smashers Dev Team [Fri, 4 Apr 2014 06:40:54 +0000 (07:40 +0100)]
Merge pull request #271 from XhmikosR/jshint

Updates JSHint to 2.5.0.

10 years agoUpdate JSHint to 2.5.0.
XhmikosR [Wed, 2 Apr 2014 06:43:40 +0000 (09:43 +0300)]
Update JSHint to 2.5.0.

10 years agoMerge pull request #269 from XhmikosR/commas
Goal Smashers Dev Team [Sat, 29 Mar 2014 19:46:06 +0000 (19:46 +0000)]
Merge pull request #269 from XhmikosR/commas

Removes unneeded commas.

10 years agoMerge pull request #268 from XhmikosR/master
Goal Smashers Dev Team [Sat, 29 Mar 2014 19:39:41 +0000 (19:39 +0000)]
Merge pull request #268 from XhmikosR/master

Update commander dependency.

10 years agoMerge pull request #270 from XhmikosR/history
Goal Smashers Dev Team [Sat, 29 Mar 2014 19:39:29 +0000 (19:39 +0000)]
Merge pull request #270 from XhmikosR/history

Updates History.md.

10 years agoUpdate History.md.
XhmikosR [Sat, 29 Mar 2014 18:02:55 +0000 (20:02 +0200)]
Update History.md.

10 years agoRemove unneeded commas.
XhmikosR [Sat, 29 Mar 2014 17:55:12 +0000 (19:55 +0200)]
Remove unneeded commas.

10 years agoUpdate commander dependency.
XhmikosR [Sat, 29 Mar 2014 17:44:14 +0000 (19:44 +0200)]
Update commander dependency.

10 years agoVersion 2.1.8.
Jakub Pawlowicz [Fri, 28 Mar 2014 18:31:42 +0000 (18:31 +0000)]
Version 2.1.8.

10 years agoFixes #267 - incorrect non-adjacent selector merging.
Jakub Pawlowicz [Fri, 28 Mar 2014 18:30:36 +0000 (18:30 +0000)]
Fixes #267 - incorrect non-adjacent selector merging.

10 years agoMerge pull request #261 from XhmikosR/master
Goal Smashers Dev Team [Mon, 24 Mar 2014 21:44:17 +0000 (21:44 +0000)]
Merge pull request #261 from XhmikosR/master

Clean up .jshintrc.

10 years agoVersion 2.1.7.
Jakub Pawlowicz [Mon, 24 Mar 2014 20:34:58 +0000 (20:34 +0000)]
Version 2.1.7.

10 years agoFixes #264 - processing `@import` statements inside comments.
Jakub Pawlowicz [Mon, 24 Mar 2014 20:31:39 +0000 (20:31 +0000)]
Fixes #264 - processing `@import` statements inside comments.

10 years agoClean up .jshintrc.
XhmikosR [Tue, 18 Mar 2014 06:27:12 +0000 (08:27 +0200)]
Clean up .jshintrc.

10 years agoVersion 2.1.6.
Jakub Pawlowicz [Mon, 10 Mar 2014 07:53:00 +0000 (07:53 +0000)]
Version 2.1.6.

10 years agoFixes wrong @import handling in EmptyRemoval.
Jakub Pawlowicz [Mon, 10 Mar 2014 07:51:18 +0000 (07:51 +0000)]
Fixes wrong @import handling in EmptyRemoval.

Since @import declarations are special to any selectors or blocks
these were not handled properly in EmptyRemoval.

10 years agoVersion 2.1.5.
Jakub Pawlowicz [Fri, 7 Mar 2014 20:44:20 +0000 (20:44 +0000)]
Version 2.1.5.

10 years agoFixes #255 - incorrect processing of a trailing '-0' in selectors.
Jakub Pawlowicz [Fri, 7 Mar 2014 20:42:15 +0000 (20:42 +0000)]
Fixes #255 - incorrect processing of a trailing '-0' in selectors.

10 years agoMerge pull request #252 from hhua/box_shadow_zeros
Goal Smashers Dev Team [Fri, 7 Mar 2014 07:05:06 +0000 (07:05 +0000)]
Merge pull request #252 from hhua/box_shadow_zeros

Fixes minifying box-shadow with three zeros.

10 years agoFixes #252 - box-shadow with three zeros compression
Han Hua [Wed, 5 Mar 2014 19:58:54 +0000 (13:58 -0600)]
Fixes #252 - box-shadow with three zeros compression

10 years agoAdds a list of issues fixed by @Venemo.
Jakub Pawlowicz [Wed, 5 Mar 2014 08:09:55 +0000 (08:09 +0000)]
Adds a list of issues fixed by @Venemo.

See ea941cb165abe1e74f87bd46299f0526add9c205 for details.

10 years agoAdds an acknowledgment for @Venemo.
Jakub Pawlowicz [Wed, 5 Mar 2014 08:01:04 +0000 (08:01 +0000)]
Adds an acknowledgment for @Venemo.

* Ensures the list is sorted alphabetically (by GH username).

10 years agoMerge pull request #249 from Venemo/master
Goal Smashers Dev Team [Wed, 5 Mar 2014 07:39:31 +0000 (07:39 +0000)]
Merge pull request #249 from Venemo/master

New, shiny property optimizer.

10 years agoImplemented stylistic changes as asked
Timur Kristóf [Tue, 4 Mar 2014 09:36:47 +0000 (10:36 +0100)]
Implemented stylistic changes as asked

10 years agoAdds a link to our style guide.
Goal Smashers Dev Team [Tue, 4 Mar 2014 06:50:06 +0000 (06:50 +0000)]
Adds a link to our style guide.

10 years agoRefixes #250 via new quotation marks removal algorithm.
Jakub Pawlowicz [Sat, 1 Mar 2014 08:59:59 +0000 (08:59 +0000)]
Refixes #250 via new quotation marks removal algorithm.

10 years agoAdds a better algorithm for quotation marks' removal.
Jakub Pawlowicz [Sat, 1 Mar 2014 08:52:27 +0000 (08:52 +0000)]
Adds a better algorithm for quotation marks' removal.

Quotation removal is now done via data traversal rather than regexp so
it is much more flexible.

Also adds a property name scanner to quickly locate last matching property
at a given location.

10 years agoMoves quotation matching into a QuoteScanner class.
Jakub Pawlowicz [Sat, 1 Mar 2014 04:46:18 +0000 (04:46 +0000)]
Moves quotation matching into a QuoteScanner class.

10 years agoVersion 2.1.4.
Jakub Pawlowicz [Sat, 1 Mar 2014 09:07:57 +0000 (09:07 +0000)]
Version 2.1.4.

10 years agoFixes #250 - correctly handle JSON data in quotations.
Jakub Pawlowicz [Sat, 1 Mar 2014 09:05:55 +0000 (09:05 +0000)]
Fixes #250 - correctly handle JSON data in quotations.

It's a quick fix. Proper one comes to master soon.

10 years agoSome final touches and more tests
Timur Kristóf [Fri, 28 Feb 2014 15:27:57 +0000 (16:27 +0100)]
Some final touches and more tests

10 years agoNew optimizer supports border-radius, border-color, border-style, border-width
Timur Kristóf [Fri, 28 Feb 2014 14:49:05 +0000 (15:49 +0100)]
New optimizer supports border-radius, border-color, border-style, border-width