Comments (1)
I was wondering the same thing - I noticed that this input:
.a .b {
padding-right: 10px;
}
.a .b .c {
position: absolute;
}
.a .b {
padding-bottom: 10px;
}
has the following output:
.a .b {
padding-right: 10px;
}
.a .b .c {
position: absolute;
}
.a .b {
padding-bottom: 10px;
}
when it's possible to see that the top and bottom selectors could be combined.
Is it done this way because there's no way to guarantee the precedence is maintained otherwise?
from cssshrink.
Related Issues (20)
- Wrong line number at error info
- Prefixed pseudo-classes are not working HOT 8
- Invalid font-family gets TypeError HOT 1
- Crashes on empty CSS file
- Do not shrink color HOT 2
- ::selection and ::-moz-selection selectors must be defined separately to work
- Merging mixed rules | Order bug HOT 1
- normalize selectors @getify
- Unsafe `font-family` name minification
- Media Queries operators fail
- support for ie?
- merge different selectors with similar properties
- shorten background position
- Support multiple values merge HOT 1
- Should cssshrink support sourcemaps?
- ::selection is down when using with gulp-autoprefixer
- url parse error
- MODULE_NOT_FOUND
- SCSS support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cssshrink.