Hello, I have a question: is <https://developer.mo...
# compose-web
t
Hello, I have a question: is https://developer.mozilla.org/en-US/docs/Web/CSS/calc() supported in
StyleSheet
class ? Or I have to use
Copy code
width("calc(" + AppStyleSheetVariables.myVar.value() + " ... )")
?
👌 1
b
calc
will be used automatically if you add incompatible units together, like: `
Copy code
width(100.percent + 10.px)
But I haven't tried it with CSS vars
a
It should work in both ways. If it doesn’t work in some cases, please let me know.
👍 1
t
It seems to work well. Amazing. Thanks.