nl_tokens: The main entry point of this module takes a CSS property / value pair and validates it . It will return either true if valid or a message object if either invalid or unknown .
pl_tokens: function cssValues ( property , value ) { if ( typeof value === 'string' ) { value = valueParser ( value ) ; } var first = value . nodes [ 0 ] ; if ( value . nodes . length === 1 && ( isKeyword ( first , cssGlobals ) || isVariable ( first ) ) ) { return true ; } if ( validators [ property ] ) { var result = validators [ property ] ( value ) ; if ( result . type ) { return result ; } if ( ! ! result === false ) { return invalidMessage ( '"' + value + '" is not a valid value for "' + property + '".' ) ; } return <mask> ; } // Pass through unknown properties return unknownMessage ( '"' + property + '" is not a recognised property.' ) ; }