Very easy to reproduce...

With the following CSS :

/**
 * @file
 * Page Styling
 *
 * Style the markup found in page.tpl.php. Also includes some styling of
 * miscellaneous Drupal elements that appear in the $content variable, such as
 * ul.links, .pager, .more-link, etc.
 */

/*
 * Body
 */
body {
	margin: 0;
	padding: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #3C3F48;
	background-color:#485ea3;
	
}

Because there is a space in between the two comments block, the aggregator adds a space in the aggregated CSS, which starts by a space anf then "body". Because of the space, the css keyword is ignore, and that leads to display bugs.

Workaround : deleting this space between two comments ==> no bug
Fix : i don't know how... but it took me a few hours to figure out, would be nice to avoid that loss of time to other people.

Comments

dddave’s picture

Status: Active » Postponed (maintainer needs more info)

Is this issue still present in the latest release?

neRok’s picture

Version: 7.12 » 7.22
Component: aggregator.module » system.module
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Using Bartik on 7.22, I put the above css comments at the start of style.css (just before the body tag), and enabled css aggregation. It did not effect the aggregated css in any way. I then removed the css and flushed caches, and the aggregated css file was the same.