Lines Matching refs:value
21 function detect_font_value_type($value) { argument
22 if (preg_match("/^normal|italic|oblique$/",$value)) { return FONT_VALUE_STYLE; }
23 if (preg_match("/^normal|bold|bolder|lighter|[1-9]00$/",$value)) { return FONT_VALUE_WEIGHT; }
25 if (preg_match("#/#",$value)) { return FONT_VALUE_SIZE; }
26 if (preg_match("#^\d+\.?\d*%$#",$value)) { return FONT_VALUE_SIZE; }
27 …if (preg_match("#^(xx-small|x-small|small|medium|large|x-large|xx-large)$#",$value)) { return FONT…
28 if (preg_match("#^(larger|smaller)$#",$value)) { return FONT_VALUE_SIZE; }
29 if (preg_match("#^(\d*(.\d*)?(pt|pc|in|mm|cm|px|em|ex))$#",$value)) { return FONT_VALUE_SIZE; }
62 function parse($value) { argument
65 if ($value === 'inherit') {
87 $value = preg_replace("/\s+/"," ",$value);
88 $value = preg_replace("/,\s+/",",",$value);
89 $value = preg_replace("#\s*/\s*#","/",$value);
94 $subvalues = preg_split("/ /",$value);