There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-d05c7d0e-9709-432f-9c9f-acbd00916494 XWIKI-23906 Open

CSS compression bug

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-21d054c7-941c-48f5-b55a-b648b992ce60 Changes by Ralf on 17/Jan/26 18:58
 
Description: In case you use CSS rules like the following
{code:java}
.title {
  font-size: calc(1em + 2px);
}{code}
then the white-space surrounding the plus sign should survive the CSS compression.
Otherwise, it's a CSS syntax error and the corresponding CSS rule will be ignored.
Same with `calc` in combination with the minus sign.

In case you are [still using YUI compressor|https://github.com/xwiki/xwiki-platform/blob/7508c3a91ad2d506adc277f855f8018a7996aca8/xwiki-platform-core/xwiki-platform-skin/xwiki-platform-skin-skinx/src/main/java/com/xpn/xwiki/web/sx/CssExtension.java#L29],
than then the problem is a bug in YUI compressor there
[https://github.com/yui/yuicompressor/issues/330]
In that case, I guess, you should replace it with a modern CSS compressor.
Thank you very much in advance.