<commit_before>Prefixer = require('./prefixer')
OldValue = require('./old-value')
utils    = require('./utils')

vendor = require('postcss/lib/vendor')

class Value extends Prefixer

  # Clone decl for each prefixed values
  @save: (prefixes, decl) ->
    prop = decl.prop
    for prefix, value of decl._autoprefixerValues
      continue if value == decl.value

      isTransition = prop == 'transition' or prop == 'transition-property'
      propPrefix   = vendor.prefix(prop)

      if propPrefix == prefix
        decl.value = value
      else if isTransition and value.indexOf('-webkit-filter') != -1
        decl.value = value
      else if propPrefix == '-pie-'
        continue
      else
        prefixed = prefixes.prefixed(prop, prefix)
        rule     = decl.parent
        if rule.every( (i) -> i.prop != prefixed )
          trimmed = value.replace(/\s+/, ' ')
          already = rule.some (i) ->
            i.prop == decl.prop and i.value.replace(/\s+/, ' ') == trimmed
<commit_msg>Remove transition code from value prefixer<commit_after>Prefixer = require('./prefixer')
OldValue = require('./old-value')
utils    = require('./utils')

vendor = require('postcss/lib/vendor')

class Value extends Prefixer

  # Clone decl for each prefixed values
  @save: (prefixes, decl) ->
    prop = decl.prop
    for prefix, value of decl._autoprefixerValues
      continue if value == decl.value

      propPrefix = vendor.prefix(prop)
      if propPrefix == prefix
        decl.value = value
      else if propPrefix == '-pie-'
        continue
      else
        prefixed = prefixes.prefixed(prop, prefix)
        rule     = decl.parent
        if rule.every( (i) -> i.prop != prefixed )
          trimmed = value.replace(/\s+/, ' ')
          already = rule.some (i) ->
            i.prop == decl.prop and i.value.replace(/\s+/, ' ') == trimmed

{'fraction_non_alphanumeric': 0.13275769023205614, 'fraction_numerical': 0.0005396654074473826, 'mean_word_length': 2.3345323741007196, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4178619', 'n_tokens_mistral': 544, 'n_tokens_neox': 535, 'n_words': 149}