Closed (cannot reproduce)
Project:
Drupal core
Version:
7.22
Component:
system.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Jun 2012 at 10:41 UTC
Updated:
7 Jun 2013 at 05:25 UTC
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
Comment #1
dddave commentedIs this issue still present in the latest release?
Comment #2
neRok commentedUsing 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.