Add failing test for imported mixin with wrong path

When relative URLs are on, and there's an image referenced via url(...),
if the URL is unquoted, the generated CSS duplicates the base path
This commit is contained in:
Brian Dukes
2013-07-11 15:04:52 -05:00
parent 290376f4eb
commit 05be360993
4 changed files with 28 additions and 0 deletions

View File

@@ -40,3 +40,7 @@
#secret {
font-family: xecret, sans-serif;
}
#imported-relative-path {
background-image: url(folder\ \(1\)/../../data/image.jpg);
border-image: url('folder (1)/../../data/image.jpg');
}

View File

@@ -44,6 +44,14 @@
#secret {
font-family: xecret, sans-serif;
}
#imported-relative-path {
background-image: url(import/../../data/image.jpg);
border-image: url('import/../../data/image.jpg');
}
#relative-url-import {
background-image: url(import/../../data/image.jpg);
border-image: url('import/../../data/image.jpg');
}
#data-uri {
uri: url('data:image/jpeg;base64,bm90IGFjdHVhbGx5IGEganBlZyBmaWxlCg==');
}