Closed
Description
Need a handy way of referencing an inline style property. This has come up on a work project but there's a workaround so no major rush.
Possible syntax could be {:property}. Eg.
.myDiv:click {
$rememberColor: "{:color}"; /* gets existing color and assigns to regular variable as a string */
color: green;
}
.something:click {
myDiv {
color: {$rememberColor};
}
}
Needs to work on any style. This is not the same solution as using CSS variables, which would work fine too.
This wouldn't be a variable type. Like the attribute {@...} syntax it can't be assigned to anything. It's just a way of getting values.