Lines Matching refs:right
176 function wouldResultInLongerValue(left, right) { argument
177 if (!left.multiplex && !right.multiplex || left.multiplex && right.multiplex)
180 var multiplex = left.multiplex ? left : right;
181 var simple = left.multiplex ? right : left;
212 function noneOverrideHack(left, right) { argument
215 right.multiplex &&
216 (right.name == 'background' || right.name == 'background-image') &&
217 anyLayerIsNone(right.value);
249 var mayOverride, right, left, component;
258 right = properties[i];
260 if (!isCompactable(right))
263 if (right.block)
266 mayOverride = compactable[right.name].canOverride;
278 if (left.unused || right.unused)
281 … if (left.hack && !right.hack && !right.important || !left.hack && !left.important && right.hack)
284 if (left.important == right.important && left.hack[0] != right.hack[0])
287 …if (left.important == right.important && (left.hack[0] != right.hack[0] || (left.hack[1] && left.h…
290 if (hasInherit(right))
293 if (noneOverrideHack(left, right))
296 if (right.shorthand && isComponentOf(right, left)) {
298 if (!right.important && left.important)
301 if (!sameVendorPrefixesIn([left], right.components))
304 if (!anyValue(validator.isFunction, left) && overridingFunction(right, validator))
307 if (!isMergeableShorthand(right)) {
312 component = findComponentIn(right, left);
317 } else if (right.shorthand && overridesNonComponentShorthand(right, left)) {
319 if (!right.important && left.important) {
323 if (!sameVendorPrefixesIn([left], right.components)) {
327 if (!anyValue(validator.isFunction, left) && overridingFunction(right, validator)) {
337 overridingComponent = findComponentIn(right, overriddenComponent);
346 …} else if (withMerging && left.shorthand && !right.shorthand && isComponentOf(left, right, true)) {
348 if (right.important && !left.important)
351 if (!right.important && left.important) {
352 right.unused = true;
366 component = findComponentIn(left, right);
367 if (everyValuesPair(mayOverride.bind(null, validator), component, right)) {
372 var nonMergeableValue = compactable[right.name].nonMergeableValue === right.value[0][1];
380 if (component.value[0][1] != right.value[0][1] && (hasInherit(left) || hasInherit(right)))
383 if (wouldResultInLongerValue(left, right))
386 if (!left.multiplex && right.multiplex)
387 turnIntoMultiplex(left, multiplexSize(right));
389 override(component, right);
392 } else if (withMerging && left.shorthand && right.shorthand && left.name == right.name) {
395 if (!left.multiplex && right.multiplex)
398 if (!right.important && left.important) {
399 right.unused = true;
403 if (right.important && !left.important) {
408 if (!isMergeableShorthand(right)) {
415 var rightComponent = right.components[k];
422 overrideShorthand(left, right);
424 } else if (withMerging && left.shorthand && right.shorthand && isComponentOf(left, right)) {
427 if (!left.important && right.important)
430 component = findComponentIn(left, right);
431 mayOverride = compactable[right.name].canOverride;
432 if (!everyValuesPair(mayOverride.bind(null, validator), component, right))
435 if (left.important && !right.important) {
436 right.unused = true;
440 var rightRestored = compactable[right.name].restore(right, compactable);
444 component = findComponentIn(left, right);
445 override(component, right);
446 right.dirty = true;
447 } else if (left.name == right.name) {
451 if (right.shorthand) {
452 for (k = right.components.length - 1; k >= 0 && overridable; k--) {
454 overridingComponent = right.components[k];
460 mayOverride = compactable[right.name].canOverride;
461 overridable = everyValuesPair(mayOverride.bind(null, validator), left, right);
464 if (left.important && !right.important && overridable) {
465 right.unused = true;
469 if (!left.important && right.important && overridable) {