File tree Expand file tree Collapse file tree 5 files changed +110
-1
lines changed
test/cases/font-face-messed Expand file tree Collapse file tree 5 files changed +110
-1
lines changed Original file line number Diff line number Diff line change @@ -461,7 +461,7 @@ module.exports = function(css, options){
461461
462462 function atfontface ( ) {
463463 var pos = position ( ) ;
464- var m = match ( / ^ @ f o n t - f a c e * / ) ;
464+ var m = match ( / ^ @ f o n t - f a c e \s * / ) ;
465465 if ( ! m ) return ;
466466
467467 if ( ! open ( ) ) return error ( "@font-face missing '{'" ) ;
Original file line number Diff line number Diff line change 1+ {
2+ "type" : " stylesheet" ,
3+ "stylesheet" : {
4+ "rules" : [
5+ {
6+ "type" : " font-face" ,
7+ "declarations" : [
8+ {
9+ "type" : " declaration" ,
10+ "property" : " font-family" ,
11+ "value" : " \" Bitstream Vera Serif Bold\" " ,
12+ "position" : {
13+ "start" : {
14+ "line" : 4 ,
15+ "column" : 3
16+ },
17+ "end" : {
18+ "line" : 4 ,
19+ "column" : 43
20+ },
21+ "source" : " input.css"
22+ }
23+ },
24+ {
25+ "type" : " declaration" ,
26+ "property" : " src" ,
27+ "value" : " url(\" http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf\" )" ,
28+ "position" : {
29+ "start" : {
30+ "line" : 5 ,
31+ "column" : 3
32+ },
33+ "end" : {
34+ "line" : 5 ,
35+ "column" : 78
36+ },
37+ "source" : " input.css"
38+ }
39+ }
40+ ],
41+ "position" : {
42+ "start" : {
43+ "line" : 1 ,
44+ "column" : 1
45+ },
46+ "end" : {
47+ "line" : 6 ,
48+ "column" : 2
49+ },
50+ "source" : " input.css"
51+ }
52+ },
53+ {
54+ "type" : " rule" ,
55+ "selectors" : [
56+ " body"
57+ ],
58+ "declarations" : [
59+ {
60+ "type" : " declaration" ,
61+ "property" : " font-family" ,
62+ "value" : " \" Bitstream Vera Serif Bold\" , serif" ,
63+ "position" : {
64+ "start" : {
65+ "line" : 9 ,
66+ "column" : 3
67+ },
68+ "end" : {
69+ "line" : 9 ,
70+ "column" : 50
71+ },
72+ "source" : " input.css"
73+ }
74+ }
75+ ],
76+ "position" : {
77+ "start" : {
78+ "line" : 8 ,
79+ "column" : 1
80+ },
81+ "end" : {
82+ "line" : 10 ,
83+ "column" : 2
84+ },
85+ "source" : " input.css"
86+ }
87+ }
88+ ]
89+ }
90+ }
Original file line number Diff line number Diff line change 1+ @font-face {font-family : "Bitstream Vera Serif Bold" ;src : url ("http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf" );}body {font-family : "Bitstream Vera Serif Bold" , serif;}
Original file line number Diff line number Diff line change 1+ @font-face
2+
3+ {
4+ font-family : "Bitstream Vera Serif Bold" ;
5+ src : url ("http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf" );
6+ }
7+
8+ body {
9+ font-family : "Bitstream Vera Serif Bold" , serif;
10+ }
Original file line number Diff line number Diff line change 1+ @font-face {
2+ font-family : "Bitstream Vera Serif Bold" ;
3+ src : url ("http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf" );
4+ }
5+
6+ body {
7+ font-family : "Bitstream Vera Serif Bold" , serif;
8+ }
You can’t perform that action at this time.
0 commit comments