Problem: attempt to use @import in stylesheets with a protocol agnostic url so that they server over either http or https:

@import url(//fonts.googleapis.com/css?family=Open+Sans:400,700,300,600,800);

Then turn on CSS aggregation. This line is dropped from the aggregated CSS file. It appears to be that the regex is improperly seeing this as a local file to include, and then can't find it. Once it can't find it it drops it from the aggregated CSS file. There are alternate ways to do this, but this should work with @import.

Comments

damien tournoud’s picture

Version: 7.22 » 8.x-dev

The bug is in drupal_load_stylesheet_content(), that currently uses a regexp (!) specifically crafted to exclude the external @imports. Most likely this whole code will have to be rewritten.

robloach’s picture

Issue tags: +Assetic

Assetic, #JustSayin'.

damien tournoud’s picture

@RobLoach: do you have an ETA on this? :)

olli’s picture

wim leers’s picture

Status: Active » Closed (duplicate)
Issue tags: -Assetic

Indeed, duplicate of #2014851: Drupal CSS preprocessing breaks protocol-relative paths, where I just posted a reroll that should be RTBC'able for Drupal 8, the pre-existing patch there should be easily portable to Drupal 7.