Giter VIP home page Giter VIP logo

Comments (12)

noprompt avatar noprompt commented on May 17, 2024

I'm inclined to agree. The only question I have is what should the output look like in that case? Let's suppose we have

{:some-property ^:prefix ^:vendors [:webkit] (some-css-fn ...)}

Do we compile separate declarations for each vendor?

lol {
  some-property: -webkit-some-css-fn(...);
  some-property: some-css-fn(...); 
}

from garden.

the-kenny avatar the-kenny commented on May 17, 2024

Yes, that's the correct way of doing this according to MDN. See
https://developer.mozilla.org/en-US/docs/Web/CSS/calc#Examples

On Sat, May 24, 2014 at 9:15 PM, Joel Holdbrooks
[email protected]:

I'm inclined to agree. The only question I have is what should the output
look like in that case? Let's suppose we have

{:some-property ^:prefix ^:vendors [:webkit](some-css-fn ...)}

Do we compile separate declarations for each vendor?

lol {
some-property: -webkit-some-css-fn(...);
some-property: some-css-fn(...); }


Reply to this email directly or view it on GitHubhttps://github.com//issues/52#issuecomment-44096853
.

from garden.

jeluard avatar jeluard commented on May 17, 2024

You might also want to consider the following: transtion: all 1s, -webkit-transform 2s;

from garden.

noprompt avatar noprompt commented on May 17, 2024

OK. I think this is doable but it's going to require a bit of forethought and planning before we can make this happen. One concern is

^:prefix {:some-property ^:prefix (some-css-fn ...)}

I suppose we could make the assumption that if, for example, the vendors were [:moz :webkit] we'd compile three lines: one for -moz-, one for -webkit-, and one unprefixed.

from garden.

noprompt avatar noprompt commented on May 17, 2024

@jeluard I think we can handle that case during declaration expansion but that's kind of gross. The compiler needs to be reworked to operate on a data format like tools.analyzer has. I've been toying with that idea and I'm willing to bet we could make a lot of these problems go away by moving in that direction.

from garden.

the-kenny avatar the-kenny commented on May 17, 2024

I suppose we could make the assumption that if, for example, the vendors were [:moz :webkit] we'd compile three lines: one for -moz-, one for -webkit-, and one unprefixed.

Sounds reasonable.

from garden.

noprompt avatar noprompt commented on May 17, 2024

@the-kenny @jeluard If you guys think of any more edge cases be sure to post them here. I want to close out some of the other stale issues before moving on this.

from garden.

jeluard avatar jeluard commented on May 17, 2024

Also not sure how it fits here but I've been thinking it would be really nice to leverage CSS.supports for the ClojureScript implementation. It would allow to generate the proper flavor at runtime and skip the useless ones.

from garden.

noprompt avatar noprompt commented on May 17, 2024

@jeluard Yes! That definitely needs to get added!

from garden.

noprompt avatar noprompt commented on May 17, 2024

...two years later this has been fixed (734e494).

from garden.

awkay avatar awkay commented on May 17, 2024

seems like this never got closed?

from garden.

noprompt avatar noprompt commented on May 17, 2024

@awkay it's fixed on the 2.0.0 branch (which is still in the works).

from garden.

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.