Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 6.1.0 CE GA1, 6.1.10 EE GA1
-
Fix Version/s: 6.1.20 EE GA2, 6.0.X EE, 6.2.0 CE M2
-
Component/s: Theme Dev
-
Labels:
-
Environment:Tomcat Bundle
-
Branch Version/s:6.1.x, 6.0.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Similar Issues:
Description
The CSS-Minifier does not properly minify media queries that contain AND-conditions.
The following statement
— cut —
@media (max-width: 750px) and (min-width: 520px) {
.mydiv
}
— cut —
gets parsed as follows:
— cut —
@media(max-width:750px) and(min-width:520px){.mydiv{background-color:red;}}
— cut —
which renders the entire media query useless (see the removed blank between "and" and the opening bracket).
When I use firebug to manually (re-)inject the space character the query is working fine.
Deactivating the minifier ("minifier.inline.content.cache.size=0" in portal-ext.properties) works around the issue. However, this is not suitable for a production environment.
Issue Links
- is related to
-
LPS-25836
Rhino is not decoding unicode or hex escape sequences in JavaScript
-

Hi Dennis,
Thank you for your report. As part of the community verifier program I am taking a look at this issue.