4 ms·
An interesting feature is dynamic updating of dependent variable properties: This example shows a variable property safely using a variable: :root {
by dhx 14y ago
An interesting feature is dynamic updating of dependent variable properties:
This example shows a variable property safely using a variable:
:root {
var-main-color: #c06;
var-accent-background: linear-gradient(to top, var(main-color), white);
}
The ‘var-accent-background’ property will automatically
update when the ‘var-main-color’ property is changed.
edit: clarified the wording of this comment to remove ambiguity (not a question).
- monkeyfacebag 14y agoTrivially, the difference is that neither SASS nor LESS is actually CSS and therefore must be transformed into valid CSS prior to being parsed by the browser. This would eliminate that step. EDIT: parent originally asked about the difference between this and SASS/LESS.
- sjs382 14y agoIt wont need to be compiled into CSS—it _is_ CSS? > EDIT: parent originally asked about the difference between this and SASS/LESS.