active-css
active-css copied to clipboard
Add a @switch command to the control flow
Would be good to have this, and it would be more performant. Needs to work with break, continue, exit, etc.
Initial example syntax for this CSS-ified:
@switch ($var|expr) {
@case 'Joan' {
}
@case $something, 'text', $somethingElse, jsExpression {
@break;
}
@case 'Dave' {
}
@default {
}
}
This statement would operate mostly like the JS switch statement. We shouldn't need additional case statements for the same result flow with a comma-delimited syntax.