This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-2ad89456-ac4d-41ec-a38f-6923d2f6b5c3 XWIKI-23906 Open

CSS compression bug

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-38904f71-daab-490a-a1f7-5c8dba9657e3 Ralf created this issue on 17/Jan/26 18:46
 
Summary: CSS compression bug
Issue Type: cid:jira-generated-image-avatar-2ad89456-ac4d-41ec-a38f-6923d2f6b5c3 Bug
Affects Versions: 17.10.2
Assignee: Unassigned
Components: Rendering - XWiki
Created: 17/Jan/26 18:46
Priority: cid:jira-generated-image-static-critical-990cb5fe-42e1-4a05-ac5f-13b409d448df Critical
Reporter: Ralf
Description:

In case you use CSS rules like the following

.title {
  font-size: calc(1em + 2px);
}

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, than the problem is a bug in YUI compressor: 
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.