A Aivaras Well-known member Aug 16, 2019 #1 Affected version 2.1.3 In XF, something like: CSS: width: calc(100% - 10px); results in: CSS: width: calc(90%); Tested on Firefox and Chrome. That is to say, the "px" value is parsed as "%" when performing the calculation.
In XF, something like: CSS: width: calc(100% - 10px); results in: CSS: width: calc(90%); Tested on Firefox and Chrome. That is to say, the "px" value is parsed as "%" when performing the calculation.
Chris D XenForo developer Staff member Aug 16, 2019 #4 @Mirovinger is correct. As it stands, you're not actually hitting the CSS calc() function, you're hitting the Less calc() function. Due to the crossover, you need to escape the command as demonstrated above.
@Mirovinger is correct. As it stands, you're not actually hitting the CSS calc() function, you're hitting the Less calc() function. Due to the crossover, you need to escape the command as demonstrated above.