Libsass: New Feature in Sass 3.5: Custom Properties

Created on 7 May 2016  路  1Comment  路  Source: sass/libsass

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

Dev - Test Written Sass 3.5

Most helpful comment

Started working on this. I think this is last real blocker to a stable 3.5.

>All comments

Started working on this. I think this is last real blocker to a stable 3.5.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ashleykolodziej picture ashleykolodziej  路  3Comments

Nimce picture Nimce  路  4Comments

schneems picture schneems  路  9Comments

c0d3xpl0it picture c0d3xpl0it  路  4Comments

bdkjones picture bdkjones  路  6Comments