Assume there is a --size
variable and my purpose is to do something like this:
.myElement {
--size: 100;
pading: var(--size / 2)px;
margin: var(--size * 2)%;
[anything]: var(--size) // calculate with --size and unit is px or % ...
}
The code above is just assumed so how can I implement it?