﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25283	ManifestStaticFilesStorage does not works in edge cases while importing url font-face with IE hack	Manuel Saelices	nobody	"See http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax

The {{{collectstatic}}} command fails when the CSS contains something like this:

{{{
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-ultralight-webfont.eot');
    src: url('../fonts/montserrat-ultralight-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/montserrat-ultralight-webfont.svg#../fonts/montserratultra_light') format('svg');
    font-weight: 100;
    font-style: normal;
}
}}} 

The reason? The {{{#../fonts/montserratultra_light}}} part of the {{{url}}} declaration makes {{{ManifestStaticFilesStorage}}} fails to compute the relative path counting the {{{..}}} and {{{/}}} ocurrences in the string. See this line: https://github.com/django/django/blob/4157c502a5202798d0f73645181cb82aa71d34d9/django/contrib/staticfiles/storage.py#L170

"	Bug	closed	contrib.staticfiles	1.8	Normal	fixed			Accepted	1	0	0	0	0	0
