Design and CSS styles
Version 6.x > Design and CSS styles > CSS minification View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
emanuele.firmani-aduno-gruppe - 10/26/2011 2:58:37 AM
   
CSS minification
I'm testing the new release v6.0.4297, to check if we can move our websites to it.

I found out Kentico truncates my CSS when I activate the CSS minification feature.
The piece of code where the CSS is truncated is at line 399 of the file GetResource.ashx.cs. The issue is due to the fact that I misspelled a css element, writing
.class1 th.class2 a. up

instead of
.class1 th.class2 a.up

and the final output was truncated at this point.

It would be great if it could be possible to check CSS validation when saving it.

Kentico 6 works like a charm.

Thanks
Regards
Emanuele Firmani

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 10/26/2011 8:01:28 AM
   
RE:CSS minification
Hi,

thank you for letting us know about this issue. We are aware of this bug and it should be fixed in a next hotfix.

We are using a standard .net ajax cssparser which does not work as expected therefore there were some issues with minification :(

I created a requirement to add validation of css file before it is saved. Thank you for suggestion.

Best regards,
Ivana Tomanickova