code: def splitBorder(parts):
      
  
      width = style = color = None
  
      if len(parts) > 3:
          log.warn("To many elements for border style %r", parts)
  
      for part in parts:
          # Width
          if isSize(part):
              width = part
  
          # Style
          elif hasattr(part, 'lower') and part.lower() in _borderStyleTable:
              style = part
  
          # Color
          else:
              color = part
  
      # log.debug("Border styles: %r -> %r ", copy_parts, (width, style, color))
  
      return (width, style, color)
docs: The order of the elements seems to be of no importance:
  
      http://www.w3.org/TR/CSS21/box.html#border-shorthand-properties