onCSSInvalidValueMessage()

Contents

onCSSInvalidValueMessage()

This function is called when an error is being generated because of an invalid CSS property value. This function can be used to ignore certain property values and/or to change or display additional messages when certain unknown property values are used. The following variables are defined when this function is called and may be modified before the validator message is displayed: (New v10.9922)

NOTE: There is a known anomaly with the variables names; they begin with $oicvm instead of $ocivm for historical reasons.

•$oicvm_property - the name of the CSS property with the invalid value

•$oicvm_value - the invalid CSS property value

•$oicvm_msgtext - the message text of the validator message that will be generated

•$oicvm_msgcat - the message category of the validator message that will be generated; the default is "General"

•$oicvm_msgflags - the message flags value used when calling MessageEx() to generate the message; set to 0 to cancel the message

•$oicvm_msgid - the message ID of the validator message that will be generated; the default is -1 for no message ID

•$oicvm_msgtype - the message type of the validator message that will be generated; the default is $MSG_ERROR