hasCSSProperty() (tick_24Validator Engine Only)

int hasCSSProperty(string $property)

Returns 1 if the current tag has a "style" attribute that includes a declaration with the given CSS property, else returns 0.

Use in tag name start, attribute, and attribute value programs.

Automatically causes the "style" attribute to be checked if it hasn't already.

This function is supported by CSE HTML Validator v12.0035 and later.