Giter VIP home page Giter VIP logo

Comments (13)

MoOx avatar MoOx commented on May 30, 2024

Ref #32

from postcss-cssnext.

bloodyowl avatar bloodyowl commented on May 30, 2024

why shouldn't it be the default behaviour?

from postcss-cssnext.

MoOx avatar MoOx commented on May 30, 2024

This is adding a lot of new rules. And it's only required for IE 8-.
And for one year I personnally only worked on IE9+ project.
But that why I created #32.

from postcss-cssnext.

bloodyowl avatar bloodyowl commented on May 30, 2024

it's not that much rules, is it?

btw IE8 is actually the lowest browser many people still have to care about (i.e. http://www.quirksmode.org/blog/archives/2014/09/ie_survey_resul.html)

from postcss-cssnext.

MoOx avatar MoOx commented on May 30, 2024

It can be a lot of if you use rem a lot. For my concern it's the unit I use the most now (maybe it's not a good thing). So it can easily create between x1.5 to x2 rules.
Anyway I can make it default & use false in my case, its not a big deal. The best option will be to rely on #32.

from postcss-cssnext.

bloodyowl avatar bloodyowl commented on May 30, 2024

yup
in most of my cases it's essentially for the grids and font-size reset after fixing the inline-block bug :)

from postcss-cssnext.

necolas avatar necolas commented on May 30, 2024

Probably not worth the time

from postcss-cssnext.

MoOx avatar MoOx commented on May 30, 2024

I've take a quick look to add this feature (disabled by default) using node-pixrem (based on postcss), but the plugin is not exported & use a global option (ouch). This will need a PR to make things right.
I'm also seeing an interesting issue robwierzbowski/node-pixrem#5

from postcss-cssnext.

necolas avatar necolas commented on May 30, 2024

It's only IE8 and Opera Mini without rem support. We don't even use fallbacks for new projects at Twitter :).

from postcss-cssnext.

MoOx avatar MoOx commented on May 30, 2024

I know, but I still have projects for client like Airbus that need IE8 support (mainly because they do not update their IT assets).
French are slow :)

from postcss-cssnext.

necolas avatar necolas commented on May 30, 2024

Sure. But it can just be a postcss plugin right? Does it have to be included in this project?

from postcss-cssnext.

MoOx avatar MoOx commented on May 30, 2024

I think according to the way I load plugins (by using require() only when needed), it won't create any perf issue if it's defined as dep, but not required all the time.
And for now, we can't chain cssnext with others plugins (until postcss 3 is out).
Also, we are likely to be like autoprefixer in the future, & having deps that won't be used according to the browsers (so features) list. Don't you think ?

from postcss-cssnext.

MoOx avatar MoOx commented on May 30, 2024

Now that #32 has landed in master, I will add rem and it might be disabled by default according to browserslist default.

from postcss-cssnext.

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.