CMS MADE SIMPLE FORGE

CGExtensions

 

[#11663] cgjs_render strips single spaces in css

avatar
Created By: TimdeBuurman (timdebuurman)
Date Submitted: Fri Dec 08 10:10:53 -0500 2017

Assigned To: Robert Campbell (calguy1000)
Version: 1.57.1
CMSMS Version: 2.2.3.1
Severity: Minor
Resolution: None
State: Open
Summary:
cgjs_render strips single spaces in css
Detailed Description:
Hi,

The CSS added to the cgjs_render with cgcss_add is rendered without any spaces,
so the single spaces are stript as well.

In example the code 

#div_element .element_inside {


becomes:

#div_element.element_inside {

thx


History

Comments
avatar
Date: 2018-08-06 06:51
Posted By: Chris Taylor (chrisbt)

I found the same issue when testing cgjs_render to output minified css.

version:	1.61.1

This seems to occur when there is a CSS sub-selector that is a class. The space
the defines the sub-selector is removed:
.widget .services {display:inline-block;}
when minified becomes:
.widget.services{display:inline-block;}

If the sub-selector is an element, the space is correctly preserved.
.news-summary li {display:block;}
when minified becomes:
.news-summary li{display:block;}

      
avatar
Date: 2021-04-13 08:44
Posted By: TimdeBuurman (timdebuurman)

Hi, 

I still keep my nominify='true' tag active in cgcss_add, because this issue
still occures.
Right now i'm at CGExtensions version 1.65.2 and CMSMS version 2.2.15

It would be nice to also minify the css output for better performance.
      
Updates

Updated: 2021-04-13 08:44
resolution_id: => 5