You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A bug in YUICompressor v2.4.2 causes certain media query declarations to break due to incorrect removal of spaces.
For example, compressing this:
@media (min-width:1px) and (max-width:799px) {
}
Results in this:
@media(min-width:1px) and(max-width:799px){}
The removal of the required space after and in effect removes from the stylesheet all rules declared within that media query section. (The rules are not literally removed, but browsers will ignore them.)
The bug was fixed shortly after the release of v2.4.2 in September 2010.
A bug in YUICompressor v2.4.2 causes certain media query declarations to break due to incorrect removal of spaces.
For example, compressing this:
Results in this:
The removal of the required space after
and
in effect removes from the stylesheet all rules declared within that media query section. (The rules are not literally removed, but browsers will ignore them.)The bug was fixed shortly after the release of v2.4.2 in September 2010.
Suggest updating to the latest release version of YUICompressor (currently v2.4.8), available at https://github.com/yui/yuicompressor/releasesNote: The 2.4.2 version may or may not also include a bug where the required leading space before the
!important
modifier is incorrectly removed.The text was updated successfully, but these errors were encountered: