Path

ez projects / ezcore / forum / general / [bug]css str_replace


[bug]css str_replace

You need to be logged in to post messages in the forums. New users may register here.

Andreas Adelsberger

Member since:
09 January 2008

Posts: 12

Tuesday 14 October 2008 3:08:15 pm

ezpacker.php line 366 rev.27



$css = str_replace('0 0 0 0', '0', $css);




converts e.g.

padding:0 0 0 0.3em;
to
padding:0.3em;

which is just not the same! This leads to unexpected layout changes.

for now i just comment out that line.

greetz and thumbs up for this great contribution!

---------------------------------------
Styleflasher New Media OG
Websites. Games/Multimedia.

Up

André R.

Member since:
14 January 2008

Posts: 170

Wednesday 15 October 2008 9:49:53 am

Thanks for the bug report!
Changed it to:



$css = str_replace('0 0 0 0;', '0;', $css);


Lead Engineer eZ Publish
@: http://twitter.com/andrerom

Up

You need to be logged in to post messages in the forums. New users may register here.