-
Notifications
You must be signed in to change notification settings - Fork 365
Broken CSS if contains classes starting with dash #993
Comments
Looking at the css spec I don't think Are you sure this works in all browsers? (If there's something people are doing in html/css/js that isn't to spec but is commonly used and widely supported by browsers then we should fix our minifier to work with it to avoid breaking sites.) |
Thank you for the exhaustive answer. Yes, these class names work in every browser, even the old and dated IE 7 and Safari 5. Could you consider to implement the correct handling of these class names? |
Ok, sounds like this is browser behavior we have to work with. |
If our CSS parser considers CSS to be invalid, it should not minify it and What actually happens to the CSS in this case? If we are actually breaking -Josh On Thu, Jul 16, 2015 at 9:21 AM, Jeff Kaufman [email protected]
|
The PageSpeed outputted CSS contains the first |
Target:
<div class="block__element --modifier"></div>
Original CSS:
Standard CSS minified output:
PageSpeed CSS minified output:
PageSpeed it removes the backslash before the dash and break all stylesheet.
The text was updated successfully, but these errors were encountered: