Fix a bug: css urls are incorrectly stripped of commas (#14476)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
This commit is contained in:
1 parent
281072befd
commit
9500403c1d
7 files changed
+129
-15
No files matched your search
@@ -11,11 +11,63 @@ div {
|
||||
background: -fb-url(/images/bg.png);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
src: url(RobotoFlex-VariableFont_GRAD,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf);
|
||||
src: url(foo.ttf?query=foo,bar,);
|
||||
src: url(foo.woff2?foo=rgb\\(255,255,0\\));
|
||||
}
|
||||
|
||||
a {
|
||||
content: url(https://example.com/\\)\\).jpg);
|
||||
content: url(https://example.com/\\(\\(.jpg);
|
||||
content: url(https://example.com/\\ \\ .jpg);
|
||||
content: url( https://example.com/\\)\\).jpg );
|
||||
content: url( https://example.com/\\(\\(.jpg );
|
||||
content: url( https://example.com/\\ \\ .jpg );
|
||||
|
||||
background:
|
||||
no-repeat url(https://example.com/\\)\\).jpg),
|
||||
no-repeat url(https://example.com/\\(\\(.jpg),
|
||||
no-repeat url(https://example.com/\\ \\ .jpg),
|
||||
no-repeat url( https://example.com/\\)\\).jpg ),
|
||||
no-repeat url( https://example.com/\\(\\(.jpg ),
|
||||
no-repeat url( https://example.com/\\ \\ .jpg ),
|
||||
no-repeat url(foo.ttf?query=foo,bar,),
|
||||
no-repeat url(foo.woff2?foo=rgb\\(255,255,0\\))
|
||||
no-repeat url(RobotoFlex-VariableFont_GRAD,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf);
|
||||
;
|
||||
}
|
||||
|
||||
=====================================output=====================================
|
||||
div {
|
||||
background: url(/images/bg.png);
|
||||
background: -fb-url(/images/bg.png);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
src: url(RobotoFlex-VariableFont_GRAD,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf);
|
||||
src: url(foo.ttf?query=foo,bar,);
|
||||
src: url(foo.woff2?foo=rgb\\(255,255,0\\));
|
||||
}
|
||||
|
||||
a {
|
||||
content: url(https://example.com/\\)\\).jpg);
|
||||
content: url(https://example.com/\\(\\(.jpg);
|
||||
content: url(https://example.com/\\ \\ .jpg);
|
||||
content: url( https://example.com/\\)\\).jpg );
|
||||
content: url( https://example.com/\\(\\(.jpg );
|
||||
content: url(https://example.com/\\ \\ .jpg);
|
||||
|
||||
background: no-repeat url(https://example.com/\\)\\).jpg),
|
||||
no-repeat url(https://example.com/\\(\\(.jpg),
|
||||
no-repeat url(https://example.com/\\ \\ .jpg),
|
||||
no-repeat url( https://example.com/\\)\\).jpg ),
|
||||
no-repeat url( https://example.com/\\(\\(.jpg ),
|
||||
no-repeat url( https://example.com/\\ \\ .jpg ),
|
||||
no-repeat url(foo.ttf?query=foo,bar,),
|
||||
no-repeat url(foo.woff2?foo=rgb\\(255,255,0\\))
|
||||
no-repeat url(RobotoFlex-VariableFont_GRAD,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf);
|
||||
}
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
@@ -2,3 +2,30 @@ div {
|
||||
background: url(/images/bg.png);
|
||||
background: -fb-url(/images/bg.png);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
src: url(RobotoFlex-VariableFont_GRAD,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf);
|
||||
src: url(foo.ttf?query=foo,bar,);
|
||||
src: url(foo.woff2?foo=rgb\(255,255,0\));
|
||||
}
|
||||
|
||||
a {
|
||||
content: url(https://example.com/\)\).jpg);
|
||||
content: url(https://example.com/\(\(.jpg);
|
||||
content: url(https://example.com/\ \ .jpg);
|
||||
content: url( https://example.com/\)\).jpg );
|
||||
content: url( https://example.com/\(\(.jpg );
|
||||
content: url( https://example.com/\ \ .jpg );
|
||||
|
||||
background:
|
||||
no-repeat url(https://example.com/\)\).jpg),
|
||||
no-repeat url(https://example.com/\(\(.jpg),
|
||||
no-repeat url(https://example.com/\ \ .jpg),
|
||||
no-repeat url( https://example.com/\)\).jpg ),
|
||||
no-repeat url( https://example.com/\(\(.jpg ),
|
||||
no-repeat url( https://example.com/\ \ .jpg ),
|
||||
no-repeat url(foo.ttf?query=foo,bar,),
|
||||
no-repeat url(foo.woff2?foo=rgb\(255,255,0\))
|
||||
no-repeat url(RobotoFlex-VariableFont_GRAD,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf);
|
||||
;
|
||||
}
|
||||
Reference in new issue
Block a user