72        $bits = explode(
' ', $string);
 
   75        $keywords[
'h'] = 
false; 
 
   76        $keywords[
'v'] = 
false; 
 
   77        $keywords[
'ch'] = 
false; 
 
   78        $keywords[
'cv'] = 
false; 
 
   91        foreach ($bits as $bit) {
 
   97            $lbit = ctype_lower($bit) ? $bit : strtolower($bit);
 
   98            if (isset($lookup[$lbit])) {
 
   99                $status = $lookup[$lbit];
 
  100                if ($status == 
'c') {
 
  107                $keywords[$status] = $lbit;
 
  133        if ($keywords[
'h']) {
 
  134            $ret[] = $keywords[
'h'];
 
  135        } elseif ($keywords[
'ch']) {
 
  136            $ret[] = $keywords[
'ch'];
 
  137            $keywords[
'cv'] = 
false; 
 
  138        } elseif (count($measures)) {
 
  139            $ret[] = array_shift($measures);
 
  142        if ($keywords[
'v']) {
 
  143            $ret[] = $keywords[
'v'];
 
  144        } elseif ($keywords[
'cv']) {
 
  145            $ret[] = $keywords[
'cv'];
 
  146        } elseif (count($measures)) {
 
  147            $ret[] = array_shift($measures);
 
  153        return implode(
' ', 
$ret);
 
An exception for terminatinating execution or to throw for unit testing.
Validates the value of background-position.
validate($string, $config, $context)
$length
@type HTMLPurifier_AttrDef_CSS_Length
$percentage
@type HTMLPurifier_AttrDef_CSS_Percentage
Represents a Length as defined by CSS.
Validates a Percentage as defined by the CSS spec.
Base class for all validating attribute definitions.
parseCDATA($string)
Convenience method that parses a string as if it were CDATA.