If your CSS file has a stray semicolon at the end then your CSS will break if you turn on CSS aggregation. Not sure if this is something Drupal should handle, but I wanted to point it out.

Example CSS file

...
.name {width: 150px;}
.age {width: 200px;};

Comments

bryancasler’s picture

Issue summary: View changes

Cleanup

bryancasler’s picture

Issue summary: View changes

Cleanup

droplet’s picture

Version: 7.8 » 8.x-dev

I think Drupal should take care of all errors or show us a warning message.

wim leers’s picture

Component: theme system » CSS
Status: Active » Closed (works as designed)

That's a CSS syntax error. Drupal's CSS aggregation doesn't fix CSS syntax errors. That's not its task. Your parse error just continues to exist in the aggregate!

wim leers’s picture

Issue summary: View changes

Cleanup

chi’s picture

Issue summary: View changes
Status: Closed (works as designed) » Closed (duplicate)
Related issues: +#2936067: CSS aggregation fails on many variations of @import
chi’s picture

Status: Closed (duplicate) » Closed (works as designed)