Lines Matching refs:values

10 function _anyIsInherit(values) {  argument
13 for (i = 0, l = values.length; i < l; i++) {
14 if (values[i][1] == 'inherit') {
77 var values = property.value;
95 if (values.length > 1 && _anyIsInherit(values)) {
96 …throw new InvalidPropertyError('Invalid animation values at ' + formatPosition(values[0][2][0]) + …
99 for (i = 0, l = values.length; i < l; i++) {
100 value = values[i];
144 var values = property.value;
163 for (var i = values.length - 1; i >= 0; i--) {
164 var value = values[i];
188 var previousValue = values[i - 1];
192 } else if (i > 1 && values[i - 2][1] == Marker.FORWARD_SLASH) {
223 …throw new InvalidPropertyError('Invalid background value at ' + formatPosition(values[0][2][0]) + …
230 var values = property.value;
233 for (var i = 0, l = values.length; i < l; i++) {
234 if (values[i][1] == Marker.FORWARD_SLASH) {
240 if (splitAt === 0 || splitAt === values.length - 1) {
241 …throw new InvalidPropertyError('Invalid border-radius value at ' + formatPosition(values[0][2][0])…
246 values.slice(0, splitAt) :
247 values.slice(0);
252 values.slice(splitAt + 1) :
253 values.slice(0);
273 var values = property.value;
287 if (!values[index]) {
291 if (values.length == 1 && values[0][1] == 'inherit') {
292 …= variant.value = weight.value = stretch.value = size.value = height.value = family.value = values;
296 …if (values.length == 1 && (validator.isFontKeyword(values[0][1]) || validator.isGlobal(values[0][1…
297 values[0][1] = Marker.INTERNAL + values[0][1];
298 …= variant.value = weight.value = stretch.value = size.value = height.value = family.value = values;
302 …if (values.length < 2 || !_anyIsFontSize(values, validator) || !_anyIsFontFamily(values, validator…
306 if (values.length > 1 && _anyIsInherit(values)) {
307 …throw new InvalidPropertyError('Invalid font values at ' + formatPosition(values[0][2][0]) + '. Ig…
312 …isStretchValid = validator.isFontStretchKeyword(values[index][1]) || validator.isGlobal(values[ind…
313 …isStyleValid = validator.isFontStyleKeyword(values[index][1]) || validator.isGlobal(values[index][…
314 …isVariantValid = validator.isFontVariantKeyword(values[index][1]) || validator.isGlobal(values[ind…
315 …isWeightValid = validator.isFontWeightKeyword(values[index][1]) || validator.isGlobal(values[index…
318 style.value = [values[index]];
321 variant.value = [values[index]];
324 weight.value = [values[index]];
327 stretch.value = [values[index]];
330 …alid font style / variant / weight / stretch value at ' + formatPosition(values[0][2][0]) + '. Ign…
339 …f (validator.isFontSizeKeyword(values[index][1]) || validator.isUnit(values[index][1]) && !validat…
340 size.value = [values[index]];
344 …throw new InvalidPropertyError('Missing font size at ' + formatPosition(values[0][2][0]) + '. Igno…
347 if (!values[index]) {
348 …throw new InvalidPropertyError('Missing font family at ' + formatPosition(values[0][2][0]) + '. Ig…
352values[index] && values[index][1] == Marker.FORWARD_SLASH && values[index + 1] && (validator.isLin…
353 height.value = [values[index + 1]];
361 while (values[index]) {
362 if (values[index][1] == Marker.COMMA) {
366 family.value[family.value.length - 1][1] += Marker.SPACE + values[index][1];
368 family.value.push(values[index]);
378 …throw new InvalidPropertyError('Missing font family at ' + formatPosition(values[0][2][0]) + '. Ig…
384 function _anyIsFontSize(values, validator) { argument
388 for (i = 0, l = values.length; i < l; i++) {
389 value = values[i];
399 function _anyIsFontFamily(values, validator) { argument
403 for (i = 0, l = values.length; i < l; i++) {
404 value = values[i];
444 var values = property.value;
448 for (i = 0, l = values.length; i < l; i++) {
449 if (values[i][1] == ',')
461 var to = i < l ? splitsAt[i] : values.length;
464 _property.value = values.slice(from, to);
496 var values = property.value.slice(0);
497 var total = values.length;
501 for (index = 0, total = values.length; index < total; index++) {
502 if (validator.isUrl(values[index][1]) || values[index][1] == '0') {
503 image.value = [values[index]];
504 values.splice(index, 1);
510 for (index = 0, total = values.length; index < total; index++) {
511 if (validator.isListStylePositionKeyword(values[index][1])) {
512 position.value = [values[index]];
513 values.splice(index, 1);
519 …if (values.length > 0 && (validator.isListStyleTypeKeyword(values[0][1]) || validator.isIdentifier…
520 type.value = [values[0]];
532 var values = property.value;
546 if (values.length > 1 && _anyIsInherit(values)) {
547 …throw new InvalidPropertyError('Invalid animation values at ' + formatPosition(values[0][2][0]) + …
550 for (i = 0, l = values.length; i < l; i++) {
551 value = values[i];
599 var values = property.value.slice(0);
605 if (values.length > 0) {
606 matches = values.filter(_widthFilter(validator));
610 values.splice(values.indexOf(match), 1);
614 if (values.length > 0) {
615 match = values.filter(_styleFilter(validator))[0];
618 values.splice(values.indexOf(match), 1);
622 if (values.length > 0) {
623 match = values.filter(_colorFilter(validator))[0];
626 values.splice(values.indexOf(match), 1);