AXR/Specification — Issue #24: constants
Author: Mouvedia
Created: 2011-12-15 23:59:35+00:00
State: open
Labels: task

We need a way to set different constants at once.

@constant {
propertyDef1 {background:red}
propertyDef2 {color:blue;width:200}
etc
_value1: green;
_value2: black;
etc
}

note {
background: _value1;
child {
propertyDef1;
color: _value1;
element {
propertyDef1;
propertyDef2;
color: inherit;
}
}
}

This is different from object inheritance using `isA` which would require one `@container` for *each* object.
Use case: declare all your constants at once at the beginning of your HSS file.