Git Product home page Git Product logo

Comments (4)

iflan avatar iflan commented on April 29, 2024

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 css

input[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=20

Any 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.

mxab avatar mxab commented on April 29, 2024

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.

iflan avatar iflan commented on April 29, 2024

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.

mxab avatar mxab commented on April 29, 2024

cool thanks for the clarification
I guess also for know I simply kick out all "\9;" lines

from closure-stylesheets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.