Closed gvinson closed 1 year ago
It looks like criticalcss is expanding some properties when using shorthand css. For example,
background:url(image.jpg) 50% 0 no-repeat #fff; -moz-background-size:cover; -o-background-size:cover; -webkit-background-size:cover; background-size:cover;
becomes
background-image: url(image.jpg); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); -webkit-background-size: cover; background-size: cover; background-position: 50% 0px; background-repeat: no-repeat no-repeat;
I was just wondering if this was done on purpose, and if so, why.
Thanks!
So, this is actually an issue with PhantomJS 1.x.
This issue will be resolved when we upgrade to Phantom 2.
I've flagged this in the criticalcss repo - https://github.com/filamentgroup/criticalCSS/issues/31
It looks like criticalcss is expanding some properties when using shorthand css. For example,
becomes
I was just wondering if this was done on purpose, and if so, why.
Thanks!