There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-6fa67787-0983-4a44-a155-08bc9a3cf8f6 XWIKI-21246 Open

CSS minification removes spaces around operator in calc expressions

 
View issue   ·   Add comment
 

2 updates

 
cid:jira-generated-image-avatar-7ee6dcfa-7d0d-4071-bc3a-6a034ebed964 Changes by Raphaël Jakse on 19/Jan/26 09:53
 
Issue Type: New Feature Bug
Description: A CSS SSX containing the following:

{
{ code}
p \ { width: calc(50% + 1px) }
{code
} }

is minified to:

{
{ code}
p \ {width:calc(50%+1px)}
{code
} }

Notice the missing spaces around the + operator. This is a syntax error in CSS, the declaration including the calc expression gets entirely discarded by the CSS parser as a consequence.

This also means that ?minify=false does not behave the same as without.