Open GoogleCodeExporter opened 9 years ago
Also noted that "background-image", "background-repeat","background-position"
can be combined.
Original comment by praise...@gmail.com
on 5 Jun 2011 at 7:38
Also that "border-bottom-width", "border-bottom-style" and
"border-bottom-color" can be combined to make one rule border:1px solid #000;
Original comment by praise...@gmail.com
on 5 Jun 2011 at 7:41
If some style is repeated accidentally, although this is the fault of the
coder, yet the repeated property or rule can be removed safely.
The following is common problem when we use more than one CSS files and 3rd
party CSS templates etc. Plug ins (like jquery plug ins have own CSS),
frameworks etc. These are all the body tags collected from all CSS files:
body {
background-color:#fff;
color: #000;
background-color:#fff;
margin:0
}
body {
text-decoration: underline;
color: #666666;
}
body {}
body {
text-decoration: underline;
color: #666666;
}
If I am not wrong, it can be rewritten as:
body{background-color:#fff;margin:0;text-decoration:underline;color:#666}
(see the ; is there after margin:0 that is not in the original code)
Hope all my suggestions are useful for the script.
Original comment by praise...@gmail.com
on 5 Jun 2011 at 7:50
Thanks for your feedback.
I'm aware of the additional minification possibilities. The current status is
that CSSMin tries to avoid to change a ruleset, ruleset declaration, etc. to
preserve their lexical meaning. For example there are some browser hacks
depending on double definition of rulesets or ruleset declarations like
Clearfix or the IE min-height hack.
I'm considering to create a optional plugin for CSSMin version 3 to combine
rulesets and/or ruleset declarations.
Original comment by joe.scylla
on 15 Jun 2011 at 11:25
Original issue reported on code.google.com by
praise...@gmail.com
on 5 Jun 2011 at 7:32