Comments (9)
If you consider Outlook 2007 a browser then good for you. 👍
from yuicompressor.
This was merged into 2.4.8
from yuicompressor.
@tml @namanyayg Could you provide any examples where stripping a space before '!important' leads to a broken styling?
We got the similar request in https://github.com/GoalSmashers/clean-css but without a test case it's not possible to verify if you made a mistake or if there is a very specific case where the space has to be there.
According to our tests it is OK to get rid of it. What's more such code has been used in production for couple years now without any issues.
from yuicompressor.
Can we get some background or data on this, or revert the change? Without any more information, this seems like a needless regression. We've also been using 2.4.7 for a while now in production without issue.
from yuicompressor.
I can confirm that this space is important in some browsers / mail clients.
Outlook 2007 is definitely effected by this.
from yuicompressor.
Also, although its not in the spec that a space should be present, all of their examples have it.
http://www.w3.org/TR/CSS2/cascade.html#important-rules
from yuicompressor.
So you punish all other browsers because of Outlook 2007?
from yuicompressor.
Yes. And punish? Hardly. The rule shouldn't really be used anyway. But its required to fix bad implementations of browers etc. eg. Outlook 2007 etc.
from yuicompressor.
@GoalSmashers Really? I even stated bad implementations of browsers.
Outlook makes up for a huge percentage of the mail client market share.
from yuicompressor.
Related Issues (20)
- CSS units being stripped from variables HOT 3
- java.lang.StringIndexOutOfBoundsException: String index out of range
- This project has been abandoned with huge bugs, move to uglifycss
- build error HOT 2
- identifier is a reserved word
- compress css like left:calc(50% - (100px / 2)) has a bug HOT 5
- 不再支持目标选项 1.5。请使用 1.6 或更高版本
- Dead project? HOT 1
- caches.delete() not working HOT 1
- Space before : are removed inside media query HOT 2
- Failed to compress valid JS (axios library)
- 压缩HTML时 页内JS不支持 ES6 语法吗 ?[ERROR] HtmlCompressor: "syntax error" at line [42:37] during JavaScript compression: window.document.onclick = (e) => {
- CSS Compressing don't working HOT 1
- CSS: Invalid whitespace removal / @supports () "or" () HOT 1
- Hacking HOT 1
- Invalid CSS compression for transition-delay HOT 1
- background-image: url(svg) is not compress correctly
- New JAR file. HOT 3
- A potential XXE vulnerability found in rhino HOT 2
- 编译报错了
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 yuicompressor.