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:
  if isSize(part):
   width = part
  elif (hasattr(part, 'lower') and (part.lower() in _borderStyleTable)):
   style = part
  else:
   color = part
 return (width, style, color)

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 : if isSize ( part ) : width = part elif ( hasattr ( part , 'lower' ) and ( part . lower ( ) in _borderStyleTable ) ) : style = part else : color = part return ( width , style , color )
the order of the elements seems to be of no importance: URL#border-shorthand-properties .