Skip to content

Commit 2264cbd

Browse files
author
evilebottnawi
committed
tests: hash inside url for font-face at rule
1 parent 630579d commit 2264cbd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/urlTest.js

+6
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ describe("url", function() {
184184
test("font face with url", "@font-face { src: url(regular.woff) format('woff'), url(~truetype/regular.ttf) format('truetype') }", [
185185
[1, "@font-face { src: url(regular.woff) format('woff'), url(~truetype/regular.ttf) format('truetype') }", ""]
186186
], "?-url");
187+
test("font face with url", "@font-face { src: url(Mark Simonson - Proxima Nova Alt Regular-webfont.eot?#iefix) format('embedded-opentype'), url(~opentype/Mark Simonson - Proxima Nova Alt Regular-webfont.eot?#iefix) format('embedded-opentype') }", [
188+
[1, "@font-face { src: url(Mark Simonson - Proxima Nova Alt Regular-webfont.eot?#iefix) format('embedded-opentype'), url(~opentype/Mark Simonson - Proxima Nova Alt Regular-webfont.eot?#iefix) format('embedded-opentype') }", ""]
189+
], "?-url");
190+
test("font face with url", "@font-face { src: url('Mark Simonson - Proxima Nova Alt Regular-webfont.eot?#iefix') format('embedded-opentype'), url(\"Mark Simonson - Proxima Nova Alt Regular-webfont.eot?#iefix\") format('embedded-opentype') }", [
191+
[1, "@font-face { src: url('Mark Simonson - Proxima Nova Alt Regular-webfont.eot?#iefix') format('embedded-opentype'), url(\"Mark Simonson - Proxima Nova Alt Regular-webfont.eot?#iefix\") format('embedded-opentype') }", ""]
192+
], "?-url");
187193
test("media query with url", "@media (min-width: 500px) { body { background: url(image.png); } }", [
188194
[1, "@media (min-width: 500px) { body { background: url(image.png); } }", ""]
189195
], "?-url");

0 commit comments

Comments
 (0)