Lines Matching refs:str_value

789 	 * @param string $str_value
795 public function dissolve_short_bg($str_value) { argument
797 if (stripos($str_value, 'gradient(')!== false)
798 return array('background'=>$str_value);
809 if ($this->parser->is_important($str_value)) {
811 $str_value = $this->parser->gvw_important($str_value);
814 $str_value = $this->explode_ws(',', $str_value);
815 for ($i = 0; $i < count($str_value); $i++) {
821 if (is_array($str_value[$i])) {
822 $str_value[$i] = $str_value[$i][0];
824 $str_value[$i] = $this->explode_ws(' ', trim($str_value[$i]));
826 for ($j = 0; $j < count($str_value[$i]); $j++) {
827 …if ($have['bg'] === false && (substr($str_value[$i][$j], 0, 4) === 'url(' || $str_value[$i][$j] ==…
828 $return['background-image'] .= $str_value[$i][$j] . ',';
830 } elseif (in_array($str_value[$i][$j], $repeat, true)) {
831 $return['background-repeat'] .= $str_value[$i][$j] . ',';
832 } elseif (in_array($str_value[$i][$j], $attachment, true)) {
833 $return['background-attachment'] .= $str_value[$i][$j] . ',';
834 } elseif (in_array($str_value[$i][$j], $clip, true) && !$have['clip']) {
835 $return['background-clip'] .= $str_value[$i][$j] . ',';
837 } elseif (in_array($str_value[$i][$j], $origin, true)) {
838 $return['background-origin'] .= $str_value[$i][$j] . ',';
839 } elseif ($str_value[$i][$j][0] === '(') {
840 $return['background-size'] .= substr($str_value[$i][$j], 1, -1) . ',';
841 …($str_value[$i][$j], $pos, true) || is_numeric($str_value[$i][$j][0]) || $str_value[$i][$j][0] ===…
842 $return['background-position'] .= $str_value[$i][$j];
848 $return['background-color'] .= $str_value[$i][$j] . ',';
947 * @param string $str_value
952 public function dissolve_short_font($str_value) { argument
960 if ($this->parser->is_important($str_value)) {
962 $str_value = $this->parser->gvw_important($str_value);
973 $str_value = $this->explode_ws(',', trim($str_value));
975 $str_value[0] = $this->explode_ws(' ', trim($str_value[0]));
977 for ($j = 0; $j < count($str_value[0]); $j++) {
978 if ($have['weight'] === false && in_array($str_value[0][$j], $font_weight)) {
979 $return['font-weight'] = $str_value[0][$j];
981 } elseif ($have['variant'] === false && in_array($str_value[0][$j], $font_variant)) {
982 $return['font-variant'] = $str_value[0][$j];
984 } elseif ($have['style'] === false && in_array($str_value[0][$j], $font_style)) {
985 $return['font-style'] = $str_value[0][$j];
987 …f ($have['size'] === false && (is_numeric($str_value[0][$j][0]) || $str_value[0][$j][0] === null |…
988 $size = $this->explode_ws('/', trim($str_value[0][$j]));
998 $return['font-family'] .= ' ' . $str_value[0][$j];
1001 $return['font-family'] = $str_value[0][$j];
1010 while (isset($str_value[$i])) {
1011 $return['font-family'] .= ',' . trim($str_value[$i]);