I have a custom control with a rather complicated calc function css:
'css' => [
[
'property' => 'max-width',
'value' => 'calc((100% - 11 * var(--column-gap, 0px)) * %s / 12 + (%s - 1) * var(--column-gap, 0px))'
],
]
On frontend it’s displayed fine, the %s are replaced by field value and width calculated correctly.
But on editor itself only the first %s is replaced and the second remain which breaks the whole thing.