Page 1 of 1

CGExtensions cgjs_render css problem

Posted: Fri Dec 08, 2017 2:07 pm
by timdebuurman
Hi,

I found the cgjs_render possibilities and started testing with it.
Beside this is a great feature to combine and minimalize css and javascript, I come acress a weird thing I can't find a solution for.

This feature strips extra spaces, what normally is good.
But now I noticed that some of my CSS was not working anymore.
After some searching and comparing I saw the cause:

In CSS I also use the calc() method for some styling.
Appearently the cgjs function strips away the space in my code and the browser does not accept it anymore.

In example:

Code: Select all

padding-top: calc(50% - 30px);
becomes:

Code: Select all

padding-top: calc(50%-30px);
Can some-one thinks of a solution?
Or do I have to inform Calguy in the forge about this?

grts Tim

Re: CGExtensions cgjs_render css problem

Posted: Fri Dec 08, 2017 3:26 pm
by timdebuurman
Found out that rendered CSS also strips all single spaces.
I made a bug-report in the forge about this.