()
| 5018 | |
| 5019 | |
| 5020 | function font_face() { |
| 5021 | advance_identifier('font-family'); |
| 5022 | advance(':'); |
| 5023 | if (!css_name() && !css_string()) { |
| 5024 | stop('expected_name_a'); |
| 5025 | } |
| 5026 | semicolon(); |
| 5027 | advance_identifier('src'); |
| 5028 | advance(':'); |
| 5029 | while (true) { |
| 5030 | if (next_token.string === 'local') { |
| 5031 | advance_identifier('local'); |
| 5032 | advance('('); |
| 5033 | if (ux.test(next_token.string)) { |
| 5034 | stop('bad_url_a'); |
| 5035 | } |
| 5036 | |
| 5037 | if (!css_name() && !css_string()) { |
| 5038 | stop('expected_name_a'); |
| 5039 | } |
| 5040 | advance(')'); |
| 5041 | } else if (!css_url()) { |
| 5042 | stop('expected_a_b', next_token, 'url', artifact()); |
| 5043 | } |
| 5044 | if (next_token.id !== ',') { |
| 5045 | break; |
| 5046 | } |
| 5047 | comma(); |
| 5048 | } |
| 5049 | semicolon(); |
| 5050 | } |
| 5051 | |
| 5052 | |
| 5053 | css_border_style = [ |
no test coverage detected
searching dependent graphs…