You are here

function csstidy::property_is_valid in Advanced CSS/JS Aggregation 6

Checks if a property is valid

@access public @version 1.0

Parameters

string $property:

Return value

bool;

1 call to csstidy::property_is_valid()
csstidy::parse in advagg_css_compress/csstidy/class.csstidy.inc
Parses CSS in $string. The code is saved as array in $this->css

File

advagg_css_compress/csstidy/class.csstidy.inc, line 1174

Class

csstidy
CSS Parser class

Code

function property_is_valid($property) {
  $all_properties =& $GLOBALS['csstidy']['all_properties'];
  return isset($all_properties[$property]) && strpos($all_properties[$property], strtoupper($this
    ->get_cfg('css_level'))) !== false;
}