tubalmartin / YUI-CSS-compressor-PHP-port

A PHP port of the YUI CSS compressor.
230 stars 34 forks source link

_CSSMIN_PTX_X_ tokens appear in the final output #55

Open nickturner opened 5 years ago

nickturner commented 5 years ago

The replacement of preservedTokens doesn't restore nested tokens resulting in _CSSMIN_PTKX tokens appearing in the final minimised output.

Some tokens in the preservedTokens contain tokens themselves which don't get replaced. For example; '_CSSMIN_PTK_629_' => 'x-slicer:stretch:bottom, frame-bg:url(_CSSMIN_PTK_10_), bg:url(_CSSMIN_PTK_11_), corners:url(_CSSMIN_PTK_12_), sides:url(_CSSMIN_PTK_13_)', '_CSSMIN_PTK_630_' => 'x-slicer:stretch:bottom, corners:url(_CSSMIN_PTK_35_), sides:url(_CSSMIN_PTK_36_), frame-bg:url(_CSSMIN_PTK_37_), bg:url(_CSSMIN_PTK_38_)', '_CSSMIN_PTK_631_' => 'x-slicer:stretch:bottom, corners:url(_CSSMIN_PTK_39_), sides:url(_CSSMIN_PTK_40_), frame-bg:url(_CSSMIN_PTK_41_), bg:url(_CSSMIN_PTK_42_)', '_CSSMIN_PTK_632_' => 'x-slicer:stretch:bottom, corners:url(_CSSMIN_PTK_43_), sides:url(_CSSMIN_PTK_44_), frame-bg:url(_CSSMIN_PTK_45_), bg:url(_CSSMIN_PTK_46_)', '_CSSMIN_PTK_633_' => 'x-slicer:stretch:bottom, corners:url(_CSSMIN_PTK_47_), sides:url(_CSSMIN_PTK_48_), frame-bg:url(_CSSMIN_PTK_49_), bg:url(_CSSMIN_PTK_50_)',