8 comments

  • Aaron Wears Many HatsAaron Wears Many Hats, over 4 years ago

    I find this site extremely hard to read

    2 points
  • Raffaello SanzioRaffaello Sanzio, over 4 years ago

    Great article! It helped me understand CSS variables much better.

    2 points
  • stephen fstephen f, over 4 years ago

    Am i missing something? If you're making fallbacks with sass, whats the benefit/point:

    sass fallback css in article: a { color: #7F583F; color: var(--primary, #7F583F); } but normal compiled sass using a var would be: a { color: #7F583F; }

    Don't get me wrong this is a cool and much needed update, and the article is great. But i don't see the point (defining vars in media queries to one side) of using it if you're using sass.

    1 point
  • Peiran TanPeiran Tan, over 4 years ago

    We can do this natively in CSS now? Wow

    1 point
  • Dustin Locke, over 4 years ago

    I tried using this for a recent project. It breaks in IE. Unfortunately, the only reliable backup is just doing it the old way for now.

    0 points
    • Alec LomasAlec Lomas, over 4 years ago

      or use postcss-custom-properties to auto-generate fallbacks!

      1 point
    • Thomas Michael SemmlerThomas Michael Semmler, over 4 years ago

      the only reliable backup is just doing it the old way for now.

      I disagree with this statement. Use @supports to progessively enhance with custom properties.

      IE won't receive any updates, so we should stop using it as an excuse to not implement standards, instead we should try to adapt progressive enhancement approaches as much as possible.

      1 point