New Feature in Sass 3.5: Custom Properties #2076

Open
nex3 opened this Issue May 6, 2016 · 0 comments

Projects

None yet

2 participants

@nex3
Contributor
nex3 commented May 6, 2016 edited

The CSS custom properties spec is starting to be supported by browsers. Like libsass, Sass 3.4 supported custom properties as basically the same as normal properties. Unfortunately, this is incompatible with plain CSS; custom property values can contain almost any text, including many Sass constructs that are currently parsed as Sass.

Sass 3.5 changes the behavior to hew much more closely to CSS. Custom property values are now parsed exactly according to the CSS spec, with the sole exception of interpolation, which is provides a way for users to inject Sass objects into their custom properties.

See sass/sass#1128 for a more thorough discussion. Related specs are in

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/33995251-new-feature-in-sass-3-5-custom-properties?utm_campaign=plugin&utm_content=tracker%2F283068&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F283068&utm_medium=issues&utm_source=github).
@nex3 nex3 added the Sass 3.5 label May 6, 2016
@xzyfer xzyfer added this to the 3.5 milestone May 10, 2016
@xzyfer xzyfer modified the milestone: 3.5, 3.5.0.beta.1 Dec 11, 2016
@xzyfer xzyfer modified the milestone: 3.5.0.beta.1, 3.5.0.beta.2 Dec 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment