Is anyone playing with this yet? Using it in production?
Browser support is reportedly 69% worldwide, US-only support is 77%
according to caniuse.com (as reported in the article) and IE-Edge
support is in the works:

https://medium.com/dev-channel/css-variables-no-really-76f8c91bd34e

What it looks like:

:root {
    --borders: 1px solid black;
    --heights: 100px;
    --widths: 100px;
}

.class {
    border: var(--borders);
    height: var(--heights);
    width: var(--widths);
}

I tested this, it seemed to work fine on Ubuntu running Firefox
v53.x (64-bit).

Could this make preprocessors like LESS and SASS obsolete?
Are there any gotcha's?

Reese


______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to