Lines Matching refs:shorthands
145 $shorthands = & $this->parser->data['csstidy']['shorthands'];
148 if (isset($shorthands[$this->property])) {
167 public function shorthands() { function in csstidy_optimise
168 $shorthands = & $this->parser->data['csstidy']['shorthands'];
182 if (isset($shorthands[$this->property])) {
184 if (is_array($shorthands[$this->property])) {
587 * @param array|null $shorthands
592 public function dissolve_4value_shorthands($property, $value, $shorthands = null) { argument
593 if (is_null($shorthands)) {
594 $shorthands = & $this->parser->data['csstidy']['shorthands'];
596 if (!is_array($shorthands[$property])) {
612 $return[$shorthands[$property][$i]] = $values[$i] . $important;
615 $return[$shorthands[$property][0]] = $values[0] . $important;
616 $return[$shorthands[$property][1]] = $values[1] . $important;
617 $return[$shorthands[$property][3]] = $values[1] . $important;
618 $return[$shorthands[$property][2]] = $values[2] . $important;
621 …$return[$shorthands[$property][$i]] = (($i % 2 != 0)) ? $values[1] . $important : $values[0] . $im…
625 $return[$shorthands[$property][$i]] = $values[0] . $important;
644 $shorthands = & $this->parser->data['csstidy']['radius_shorthands'];
645 if (!is_array($shorthands[$property])) {
653 $r[0] = $this->dissolve_4value_shorthands($property, trim($values[0]), $shorthands);
654 $r[1] = $this->dissolve_4value_shorthands($property, trim($values[1]), $shorthands);
666 $return = $this->dissolve_4value_shorthands($property, $value, $shorthands);
715 * @param array|null $shorthands
720 public function merge_4value_shorthands($array, $shorthands = null) { argument
722 if (is_null($shorthands)) {
723 $shorthands = & $this->parser->data['csstidy']['shorthands'];
726 foreach ($shorthands as $key => $value) {
758 $shorthands = & $this->parser->data['csstidy']['radius_shorthands'];
760 foreach ($shorthands as $key => $value) {
771 $r[0] = $this->merge_4value_shorthands($a[0], $shorthands);
772 $r[1] = $this->merge_4value_shorthands($a[1], $shorthands);
1148 $shorthands = & $this->parser->data['csstidy']['shorthands'];
1149 if (isset($shorthands[$property])) {
1150 $property_right = $shorthands[$property][1];
1151 $property_left = $shorthands[$property][3];
1172 $shorthands = & $this->parser->data['csstidy']['radius_shorthands'];
1173 if (isset($shorthands[$property])) {
1175 if ($v[$shorthands[$property][0]] !== $v[$shorthands[$property][1]]
1176 or $v[$shorthands[$property][2]] !== $v[$shorthands[$property][3]]) {
1178 $shorthands[$property][0] => $v[$shorthands[$property][1]],
1179 $shorthands[$property][1] => $v[$shorthands[$property][0]],
1180 $shorthands[$property][2] => $v[$shorthands[$property][3]],
1181 $shorthands[$property][3] => $v[$shorthands[$property][2]],