There is 1 update, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-8ced6bc4-8742-48c8-a202-67cd6c4b3b4f XWIKI-22206 Open

Minify CSS removes spaces from SVG background-image

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-394188ee-4b8a-4384-b3bd-2bb7b3b4e558 Changes by Charpentier Lucas on 22/May/25 16:59
 
Labels: css minify usability
 
 

1 comment

 
cid:jira-generated-image-avatar-394188ee-4b8a-4384-b3bd-2bb7b3b4e558 Charpentier Lucas on 22/May/25 16:58
 
In HTML and URL specs, the URL should not contain any space:
https://url.spec.whatwg.org/#url-scheme-string

However this does not seem to be true in CSS: the specs warn that spaces are not accepted in the URLs when not using quotation marks (which would mean that they are allowed as long as we're using quotation marks).

But in the end https://www.ietf.org/rfc/rfc1738.txt marks the space as `unsafe` in an URL, which means that they should always be encoded...

The specs seem to be a bit confused here (CSS being looser than others) and this must be why it's a bug with YUI...