MCPcopy
hub / github.com/Tampermonkey/tampermonkey / font_face

Function font_face

src/jslint.js:5020–5050  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 = [

Callers 1

stylesFunction · 0.85

Calls 9

advance_identifierFunction · 0.85
advanceFunction · 0.85
css_nameFunction · 0.85
css_stringFunction · 0.85
semicolonFunction · 0.85
css_urlFunction · 0.85
artifactFunction · 0.85
commaFunction · 0.85
stopFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…