also test for using string functions with data-uri as that used to fail

This commit is contained in:
Luke Page
2015-01-26 20:20:13 +00:00
parent b09f30e079
commit 8ba6080171
2 changed files with 3 additions and 2 deletions

View File

@@ -57,7 +57,7 @@
}
#data-uri {
uri: url("data:image/jpeg;base64,bm90IGFjdHVhbGx5IGEganBlZyBmaWxlCg==");
background-image: url("data:image/jpeg;base64,bm90IGFjdHVhbGx5IGEganBlZyBmaWxlCg==");
background-image: url("data:image/jpeg;base64,bm90IGFjdHVhbGx5IGEganBlZyBmaWxlCg=="), url("data:image/jpeg;base64,bm90IGFjdHVhbGx5IGEganBlZyBmaWxlCg==");
uri-fragment: url("data:image/jpeg;base64,bm90IGFjdHVhbGx5IGEganBlZyBmaWxlCg==#fragment");
}
#data-uri-guess {

View File

@@ -46,7 +46,8 @@
#data-uri {
uri: data-uri('image/jpeg;base64', '../data/image.jpg');
@var: replace('../data/replace.jpg', "replace", "image");
background-image: data-uri(@var);
background-image: data-uri(@var), data-uri(replace('../data/image.filext', "filext", "jpg"));
uri-fragment: data-uri('image/jpeg;base64', '../data/image.jpg#fragment');
}