Giter VIP home page Giter VIP logo

Comments (13)

mahnunchik avatar mahnunchik commented on May 29, 2024

+1

from postcss-cssnext.

AntonTrollback avatar AntonTrollback commented on May 29, 2024

+1

from postcss-cssnext.

MoOx avatar MoOx commented on May 29, 2024

If for example vars are implemented before other functions we will face a real problem because we won't be able to add fallbacks for new functions without hardcoded values.
custom props are important deal.

Maybe we should act more like a huge fallback instead of "just" a replacement?

from postcss-cssnext.

MoOx avatar MoOx commented on May 29, 2024

FYI, custom props & calc have a preserve options to keep original code & just prepend fallbacks. We can add the same behavior for every features.

from postcss-cssnext.

MoOx avatar MoOx commented on May 29, 2024

This option will only make sense for low simple standalone features that cannot affect the entire stylesheet (eg: all functions & stuff like rebeccapurple).
Vars will always be a major feature since if you disable it (imagine it's supported in your browser scope) you will still have color(var(--blah)...) that we wont be able to resolve.

That being said, I'll still try to implement that for some features when it can be done. This will need to be clear in the documentation.

Will investigate about reusing what autoprefixer is using to make a standalone module that will be integrated here.

from postcss-cssnext.

MoOx avatar MoOx commented on May 29, 2024

That also a reason why I think cssnext should be like autoprefixer: adding code instead of doing some brutal replacement.
Anyone have opinion about that approach?

from postcss-cssnext.

MoOx avatar MoOx commented on May 29, 2024

FYI, here is a start from @Nyalab
https://github.com/Nyalab/caniuse-api
And here is something that would make us happy Nyalab/caniuse-api#3

from postcss-cssnext.

MoOx avatar MoOx commented on May 29, 2024

For now @Nyalab package is doing the opposite of what we want.

I think from this issue we will have something interesting soon
postcss/autoprefixer#284

from postcss-cssnext.

MoOx avatar MoOx commented on May 29, 2024

browserslist & caniuse-api are ready. Will integrate that asap.
Thanks @ai & @Nyalab for thoses modules.

from postcss-cssnext.

Nyalab avatar Nyalab commented on May 29, 2024

this will be awesome when you will have integrated those tools, keep up the good work man!

from postcss-cssnext.

MoOx avatar MoOx commented on May 29, 2024

YOU FEEL 1.0.0, DO YOU?

from postcss-cssnext.

MoOx avatar MoOx commented on May 29, 2024

FYI, this is done and ready.
But I need to fix this issue Nyalab/caniuse-api#18 in order to have a browserify build that works (for the playground).

from postcss-cssnext.

Nyalab avatar Nyalab commented on May 29, 2024

I take care of that very soon 😸

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.