Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
directive: function () {
var name, value, rules, types;
if (input.charAt(i) !== '@') return;
if (value = $(this['import'])) {
return value;
} else if (name = $(/@media|@page/g)) {
types = $(/[^{]+/g).trim();
if (rules = $(this.block)) {
return new(tree.Directive)(name + " " + types, rules);
}
} else if (name = $(/@[-a-z]+/g)) {
if (name === '@font-face') {
if (rules = $(this.block)) {
return new(tree.Directive)(name, rules);
}
} else if ((value = $(this.entity)) && $(';')) {
return new(tree.Directive)(name, value);
}
}
},
font: function () {
directive: function () {
var name, value, rules, types;
if (input.charAt(i) !== '@') return;
if (value = $(this['import'])) {
return value;
} else if (name = $(/@media|@page/g)) {
types = $(/[^{]+/g).trim();
if (rules = $(this.block)) {
return new(tree.Directive)(name + " " + types, rules);
}
} else if (name = $(/@[-a-z]+/g)) {
if (name === '@font-face') {
if (rules = $(this.block)) {
return new(tree.Directive)(name, rules);
}
} else if ((value = $(this.entity)) && $(';')) {
return new(tree.Directive)(name, value);
}
}
},
font: function () {
directive: function () {
var name, value, rules, types;
if (input.charAt(i) !== '@') return;
if (value = $(this['import'])) {
return value;
} else if (name = $(/@media|@page/g)) {
types = $(/[^{]+/g).trim();
if (rules = $(this.block)) {
return new(tree.Directive)(name + " " + types, rules);
}
} else if (name = $(/@[-a-z]+/g)) {
if (name === '@font-face') {
if (rules = $(this.block)) {
return new(tree.Directive)(name, rules);
}
} else if ((value = $(this.entity)) && $(';')) {
return new(tree.Directive)(name, value);
}
}
},
font: function () {
if (input.charAt(i) !== '@') return;
if (value = $(this['import'])) {
return value;
} else if (name = $(/@media|@page/g)) {
types = $(/[^{]+/g).trim();
if (rules = $(this.block)) {
return new(tree.Directive)(name + " " + types, rules);
}
} else if (name = $(/@[-a-z]+/g)) {
if (name === '@font-face') {
if (rules = $(this.block)) {
return new(tree.Directive)(name, rules);
}
} else if ((value = $(this.entity)) && $(';')) {
return new(tree.Directive)(name, value);
}
}
},
font: function () {
directive: function () {
var name, value, rules, types;
if (input.charAt(i) !== '@') return;
if (value = $(this['import'])) {
return value;
} else if (name = $(/@media|@page/g)) {
types = $(/[^{]+/g).trim();
if (rules = $(this.block)) {
return new(tree.Directive)(name + " " + types, rules);
}
} else if (name = $(/@[-a-z]+/g)) {
if (name === '@font-face') {
if (rules = $(this.block)) {
return new(tree.Directive)(name, rules);
}
} else if ((value = $(this.entity)) && $(';')) {
return new(tree.Directive)(name, value);
}
}
},
font: function () {
if (input.charAt(i) !== '@') return;
if (value = $(this['import'])) {
return value;
} else if (name = $(/@media|@page/g)) {
types = $(/[^{]+/g).trim();
if (rules = $(this.block)) {
return new(tree.Directive)(name + " " + types, rules);
}
} else if (name = $(/@[-a-z]+/g)) {
if (name === '@font-face') {
if (rules = $(this.block)) {
return new(tree.Directive)(name, rules);
}
} else if ((value = $(this.entity)) && $(';')) {
return new(tree.Directive)(name, value);
}
}
},
font: function () {
if (input.charAt(i) !== '@') return;
if (value = $(this['import'])) {
return value;
} else if (name = $(/@media|@page/g)) {
types = $(/[^{]+/g).trim();
if (rules = $(this.block)) {
return new(tree.Directive)(name + " " + types, rules);
}
} else if (name = $(/@[-a-z]+/g)) {
if (name === '@font-face') {
if (rules = $(this.block)) {
return new(tree.Directive)(name, rules);
}
} else if ((value = $(this.entity)) && $(';')) {
return new(tree.Directive)(name, value);
}
}
},
font: function () {
directive: function () {
var name, value, rules, types;
if (input.charAt(i) !== '@') return;
if (value = $(this['import'])) {
return value;
} else if (name = $(/@media|@page/g)) {
types = $(/[^{]+/g).trim();
if (rules = $(this.block)) {
return new(tree.Directive)(name + " " + types, rules);
}
} else if (name = $(/@[-a-z]+/g)) {
if (name === '@font-face') {
if (rules = $(this.block)) {
return new(tree.Directive)(name, rules);
}
} else if ((value = $(this.entity)) && $(';')) {
return new(tree.Directive)(name, value);
}
}
},
font: function () {
directive: function () {
var name, value, rules, types;
if (input.charAt(i) !== '@') return;
if (value = $(this['import'])) {
return value;
} else if (name = $(/@media|@page/g)) {
types = $(/[^{]+/g).trim();
if (rules = $(this.block)) {
return new(tree.Directive)(name + " " + types, rules);
}
} else if (name = $(/@[-a-z]+/g)) {
if (name === '@font-face') {
if (rules = $(this.block)) {
return new(tree.Directive)(name, rules);
}
} else if ((value = $(this.entity)) && $(';')) {
return new(tree.Directive)(name, value);
}
}
},
font: function () {