Lines Matching refs:selector

166 	public $selector = '';  variable in csstidy
632 if ($string[$i] === '/' && @$string[$i + 1] === '*' && trim($this->selector) == '') {
636 } elseif ($string[$i] === '@' && trim($this->selector) == '') {
641 ($type === 'at') ? $cur_at = '@' . $name : $this->selector = '@' . $name;
655 $this->selector = '@';
685 $this->selector = $this->css_new_selector($this->at,$this->selector);
686 $this->_add_token(SEL_START, $this->selector);
691 $this->selector = '';
694 $this->selector = trim($this->selector) . ',';
695 $this->sel_separate[] = strlen($this->selector);
697 $this->selector .= $this->_unicode($string, $i);
701 $this->selector .= $string[$i];
704 $lastpos = strlen($this->selector) - 1;
705 …s == -1 || !( (ctype_space($this->selector[$lastpos]) || $this->is_token($this->selector, $lastpos…
706 $this->selector .= $string[$i];
717 $this->property = $this->css_new_property($this->at,$this->selector,$this->property);
728 $this->_add_token(SEL_END, $this->selector);
729 $this->selector = '';
771 …if ($this->selector[0] === '@' && isset($at_rules[substr($this->selector, 1)]) && $at_rules[substr…
777 switch ($this->selector) {
788 $this->selector = '';
796 if (($string[$i] === '}' || $string[$i] === ';' || $pn) && !empty($this->selector)) {
803 $this->selector = strtolower($this->selector);
816 if (strstr($this->selector, 'font-face')) {
828 $this->css_add_property($this->at, $this->selector, $this->property, $this->value);
846 $this->_add_token(SEL_END, $this->selector);
849 $this->selector = '';
933 $this->selector .= $_cur_string;
1008 $this->sel_separate[] = strlen($this->selector);
1014 $new_sels[] = substr($this->selector, $lastpos, $pos - $lastpos - 1);
1019 foreach ($new_sels as $selector) {
1020 if (isset($this->css[$this->at][$this->selector])) {
1021 $this->merge_css_blocks($this->at, $selector, $this->css[$this->at][$this->selector]);
1024 unset($this->css[$this->at][$this->selector]);
1064 * @param string $selector
1070 public function css_add_property($media, $selector, $property, $new_val) { argument
1076 if (isset($this->css[$media][$selector][$property])) {
1077 …t($this->css[$media][$selector][$property]) && $this->is_important($new_val)) || !$this->is_import…
1078 $this->css[$media][$selector][$property] = trim($new_val);
1081 $this->css[$media][$selector][$property] = trim($new_val);
1175 * @param string $selector
1178 public function css_new_selector($media,$selector) { argument
1180 return $selector;
1182 $selector = trim($selector);
1183 if (strncmp($selector,'@font-face',10)!=0) {
1185 return $selector;
1188 return $selector;
1193 if ($sel == $selector) {
1194 return $selector;
1198 while (isset($this->css[$media][$selector]))
1199 $selector .= ' ';
1200 return $selector;
1209 * @param string $selector
1213 public function css_new_property($media, $selector, $property) { argument
1217 if (!$this->css || !isset($this->css[$media][$selector]) || !$this->css[$media][$selector])
1220 while (isset($this->css[$media][$selector][$property]))
1229 * @param string $selector
1234 public function merge_css_blocks($media, $selector, $css_add) { argument
1236 $this->css_add_property($media, $selector, $property, $value, false);