mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
also test for using string functions with data-uri as that used to fail
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user