startae / hagrid

:straight_ruler: Hagrid is a mixin library for responsive websites and web applications.
https://hagrid.netlify.com/
MIT License
30 stars 3 forks source link

Generating vendor prefixes (Safari, IE)? #19

Closed renatocarvalho closed 9 years ago

renatocarvalho commented 9 years ago

Hi @felics, I'm currently developing a site with hagrid. I'm having problems with Safari, both on Mac OS and on iOS. It seems that Hagrid is not writing the browser vendor code needed for Safari.

For example, I had to add the second line below to make it work.

  +g(full)
  display: -webkit-flex

Am I doing something wrong or are we missing some webkit prefixes?

fspoettel commented 9 years ago

@renatocarvalho Hagrid is not generating prefixes as I mostly integrate it with a frontend build-step (gulp/grunt) that uses autoprefixer. The gulpfile that is used to build the tests is providing a sample Autoprefixer config. I think this should be added to the docs, what do you think? It could be added to the core, but then library consumers can't do stuff like "last 2 versions" for prefixes in a future where most prefixes are then obsolete

renatocarvalho commented 9 years ago

@felics Got it! This move of using autoprefixer instead include inside the library makes total sense.

I agree, with you, it would be great to have this info added to the docs.

fspoettel commented 9 years ago

@renatocarvalho will add it to the docs asap