code: function elementMatchesStyle( element, style ) {
  		var def = style.getDefinition(),
  			defAttrs = def.attributes,
  			defStyles = def.styles,
  			attrName, styleName,
  			classes, classPattern, cl;
  
  		if ( element.name != def.element )
  			return false;
  
  		for ( attrName in defAttrs ) {
  			if ( attrName == 'class' ) {
  				classes = defAttrs[ attrName ].split( /\s+/ );
  				classPattern = element.classes.join( '|' );
  				while ( ( cl = classes.pop() ) ) {
  					if ( classPattern.indexOf( cl ) == -1 )
  						return false;
  				}
  			} else {
  				if ( element.attributes[ attrName ] != defAttrs[ attrName ] )
  					return false;
  			}
  		}
  
  		for ( styleName in defStyles ) {
  			if ( element.styles[ styleName ] != defStyles[ styleName ] )
  				return false;
  		}
  
  		return true;
  	}
docs: Check whether element matches CKEDITOR.style. The element can be a "superset" of style, e.g. it may have more classes, but need to have at least those defined in style.