0

i used css calc() function but it gives error. But n the nativescript documentation says that nativescript can support calc(). here example of using calc()

My code:

.card {
    --my-variable: 5;
    width: calc(50% - var(--my-variable));
    width: calc(50% - 5);
}

It is error which i get:

Error: Failed to apply property [width] with value [calc(50% - 5)] to GridLayout(550). Error: Invalid value: calc(50% - 5)

Any comments, links can help me

0 Answers0