filamentgroup / grunt-criticalcss

Grunt wrapper for criticalcss
MIT License
530 stars 27 forks source link

Option to preserve property order #58

Closed derekjohnson closed 1 year ago

derekjohnson commented 4 years ago

The issue I'm having is calc() and it's fallback swapping places. For example:

width: 50%;
width: calc(50% - 2em);

in all.css becomes:

width: calc(50% - 2em);
width: 50%;

in the generated critical CSS, causing a jump when all.css loads.

Is something like options.preservePropertyOrder possible?