Not a bug  Xen:calc doesn't understand selective css variables

CyberAP

Well-known member
Just tried to use @navTabLink.line-height in xen:calc function and figured out that it doesn't work.
The whole function:
Code:
top: {xen:calc '@headerLogoHeight - @navTabLink.line-height'}px;

 
Yes, I can use it without xen:calc. It is not set just like property, it is inside a property group: @navTabLink.
 
Line height is not exposed to xen:calc I'm afraid - only CSS rules with specific input fields provided in the style property form are available for use, those specified in the 'additional' box are just strings.

Those rules that have their own input fields are usable within xen:calc, for example:

{xen:calc '0 + @content.padding-right'} // 20
 
Line height is not exposed to xen:calc I'm afraid - only CSS rules with specific input fields provided in the style property form are available for use, those specified in the 'additional' box are just strings.

Those rules that have their own input fields are usable within xen:calc, for example:

{xen:calc '0 + @content.padding-right'} // 20
At least I can use height. :)
 
Top Bottom