News for hackers. Stuff that matters.
Re:CSS Variables landing in Chrome 49 by supernintendo on Sunday February 07, 2016 @12:23PM (#11053685)
Ok, that's cool. How long until we're able to use this and not have to worry about browser incompatibilities?
Re:CSS Variables landing in Chrome 49 by achairapart on Sunday February 07, 2016 @12:50PM (#11053820)
You can use it today with the help of http://cssnext.io
Re:CSS Variables landing in Chrome 49 by andrewingram on Sunday February 07, 2016 @07:13PM (#11055699)
You can use a limited subset. cssnext isn't magic, it's purely a source transformation, there's no runtime. It can't handle the dynamic part of css variables.
Re:CSS Variables landing in Chrome 49 by TabAtkins on Monday February 08, 2016 @01:20PM (#11059856)
Yeah, CSSNext here is basically the intersection of CSS variables and Sass variables - you can only use them in property values (like CSS), and you can only declare them at top-level (like Sass).

It's nice if you really want to utilize the current syntax, but it's less powerful than either option it's derived from.

Re:CSS Variables landing in Chrome 49 by eatonphil on Sunday February 07, 2016 @12:57PM (#11053854)
Wow, this is awesome! I can't believe I haven't seen this. Thanks for pointing it out.
Re:CSS Variables landing in Chrome 49 by crisnoble on Sunday February 07, 2016 @12:26PM (#11053699)
It depends on what browsers you need to support. Based on this data http://caniuse.com/#feat=css-variables I think it will be quite some time before you see this in sites that need broad browser compatibility. Surely there will be (is?) a shim that will come along.
Re:CSS Variables landing in Chrome 49 by err4nt on Sunday February 07, 2016 @01:47PM (#11054118)
I have a plugin that adds the ability for CSS to retrieve variables and values from regular JS!

It works in every browser today, and even old browsers, INCLUDING IE8!

http://elementqueries.com/demos/variables.html

Re:CSS Variables landing in Chrome 49 by estefan on Sunday February 07, 2016 @12:27PM (#11053701)
~5 years depending on who you're targetting.
Re:CSS Variables landing in Chrome 49 by currysausage on Sunday February 07, 2016 @12:40PM (#11053767)
Pretty sad that in a world with living standards and silent updates, things that improve the state of the Web so vastly for developers still take so long to be widely available. (W3C doesn't even have a CR yet.) Less and Sass are nice, but the resulting CSS is full of repetition, thus hurting performance.

Am I right in assuming that IE won't receive any more feature updates? Many enterprises will stay on Win 7 for a while and enterprises traditionally embrace IE, so thank you, "new" Microsoft, for pushing things forward.

Re:CSS Variables landing in Chrome 49 by CM30 on Sunday February 07, 2016 @12:52PM (#11053833)
Given that Edge has pretty much completely replaced IE, then yes, it's unlikely IE will receive any more updates. And to make it worse, Microsoft doesn't seem to be updating Edge as much as they were promising, meaning that we could end up in the exact same situation as before.
Re:CSS Variables landing in Chrome 49 by EvanPlaice on Sunday February 07, 2016 @02:22PM (#11054310)
Edge is an evergreen (ie auto updating) so it's a very good thing that MS is aggressively pushing to kill IE. In the not-so-distant future, IE won't exist.

Safari will likely be the next browser that will be slowest to update, considering its current progress in relation to the latest standards. Even with regular updates they seem to be falling behind.

Re:CSS Variables landing in Chrome 49 by currysausage on Sunday February 07, 2016 @02:29PM (#11054350)
> aggressively pushing to kill IE. In the not-so-distant future, IE won't exist.

Well, Windows 7 and 8.1 will receive support until 2020 and 2023 respectively. That gives us at least four years of IE 11 being the "new IE 6." (Yes, that is a bit of an overstatement, I remember the horrors of IE 6 quite well. It's still disappointing.)

Re:CSS Variables landing in Chrome 49 by CM30 on Sunday February 07, 2016 @05:12PM (#11055170)
That's definitely what it's supposed to be, and what Microsoft said they were doing.

But Edge updates seem to be a lot rarer than people expected, and seemingly tied more into Windows updates than any sort of regular release schedule.

If Microsoft want to make it a good browser in the long term, they need to move away from tying updates to Windows ones and just release them when new features have been implemented.

Re:CSS Variables landing in Chrome 49 by devsquid on Sunday February 07, 2016 @02:39PM (#11054408)
In my dream world, everyones on Firefox or Chrome.