News for hackers. Stuff that matters.
Re:Why I'm Excited About Native CSS Variables by chrismorgan on Monday December 07, 2015 @07:41AM (#10689055)
CSS Variables have been in Firefox for a year and a half now, and I’ve been using them in my own projects for at least a year, while I’m producing the thing in the first place—then when I have it as I like it, if it’s not purely for me, I rewrite it for inferior browsers (though I believe I could use something like PostCSS instead; I just haven’t).

They really are a marvellous thing; my favourite example would be the construction of truly responsive interfaces, tweaked for optimality at many levels and continuous, rather than just things with three or four breakpoints; with preprocessors, it’s tedious and painful; with CSS variables it’s easy and obvious—it pushes you in a direction that is so much easier to make.

In essence, they are solving a substantially different set of problems, but one that is more useful and more general; the sorts of things people did with preprocessor variables can normally be done in better ways with CSS Variables; it helps guide you to a better position.

Re:Why I'm Excited About Native CSS Variables by err4nt on Monday December 07, 2015 @10:25AM (#10689990)
> They really are a marvellous thing; my favourite example would be the construction of truly responsive interfaces, tweaked for optimality at many levels and continuous, rather than just things with three or four breakpoints; with preprocessors, it’s tedious and painful;

Anything with preprocessors is tedious and painful, yet I've been hand-writing fluidly responsive layouts for years without predefined 'breakpoint' jumps in the design. What is it about CSS variables that allowed you to change your style?

Re:Why I'm Excited About Native CSS Variables by jay_kyburz on Monday December 07, 2015 @03:23PM (#10692395)
By using percentage values?
Re:Why I'm Excited About Native CSS Variables by err4nt on Monday December 07, 2015 @08:29PM (#10694180)
Are you asking me if I use percentage values to do fluidly responsive designs? There's definitely some of that but most of the time it's even simpler than that - just defining a max width or height on something and letting things expand to fill their containers. Then you only have a few big containers in the entire layout to worry about :)
Re:Why I'm Excited About Native CSS Variables by toufka on Monday December 07, 2015 @09:41AM (#10689701)
How?