Comments (4)
The CSS compiler is not designed to support hacks like this. Instead, the
preferred method is to target browsers with different generated stylesheets
using @if (...) { ... }. (We support the star hack for historical reasons.)
Ian
On Mon, Jun 15, 2015 at 3:37 PM, Max Bruchmann [email protected]
wrote:
Hi,
in the bootstrap cssinput[type="checkbox"] {
margin: 4px 0 0;
margin-top: 1px \9;
line-height: normal; }I think it is a the same issue as described here on google code
https://code.google.com/p/closure-stylesheets/issues/detail?id=20Any idea how to work around this without modify the source css?
—
Reply to this email directly or view it on GitHub
#9.
from closure-stylesheets.
Ok, so the only thing I could do to process the source css and replace:
margin-top: 1px \9;
with
@if (BROWSER_IE9) {
margin-top: 1px;
}
and then run the gss once with --define BROWSER_IE9 and once without the flag, I guess?
from closure-stylesheets.
That's the idea, yes. The goal is to have lean stylesheets for each
browser. Perhaps, as older, terrible, browsers die out, we won't even need
that.
Ian
On Mon, Jun 15, 2015 at 4:00 PM, Max Bruchmann [email protected]
wrote:
Ok, so the only thing I could do to process the source css and replace:
margin-top: 1px \9;
with
@if (BROWSER_IE9) {
margin-top: 1px;
}and then run the gss once with --define BROWSER_IE9 and once without the
flag, I guess?—
Reply to this email directly or view it on GitHub
#9 (comment)
.
from closure-stylesheets.
cool thanks for the clarification
I guess also for know I simply kick out all "\9;" lines
from closure-stylesheets.
Related Issues (20)
- incorrect error on nested @-rules HOT 2
- closure-stylesheets.jar missing? HOT 1
- Crash when using non-empty input-renaming-map HOT 11
- Does not work with feature queries @supports
- Building closure stylesheets with Webpack
- box-decoration-break is an unrecognized property HOT 2
- Expand MergeAdjacentRulesetNodesWithSameDeclarations functionality to any repetitive rulesets
- Non splitting renaming type
- @supports throws "unknown @ rule" error
- Parsing error with css calc and negative number
- Parse error with calc()
- Unable to parse source maps
- RTL flipping does not handle transform, linear-gradient properties
- Can't parse grid layout css syntax using named grid lines
- List is missing 'all' property. Giving compile error.
- Escaped characters in css-identifier throws compiler parsing error
- How can i solve the GssParserException problem
- Dead project? HOT 2
- There is a vulnerability in Guava: Google Core Libraries for Java 20.0,upgrade recommended
- text-size-adjust is an unrecognized property
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 closure-stylesheets.