Lines Matching refs:selector
70 function match_selector($selector, $root) { argument
71 switch ($selector[0]) {
73 if ($selector[1] == strtolower($root->tagname())) { return true; };
76 if ($selector[1] == strtolower($root->get_attribute('id'))) { return true; };
79 if (node_have_class($root, $selector[1])) { return true; }
80 if ($selector[1] == strtolower($root->get_attribute('class'))) { return true; };
83 if ((node_have_class($root, $selector[2])) &&
84 ($selector[1] == strtolower($root->tagname()))) { return true; };
87 foreach ($selector[1] as $subselector) {
96 if (match_selector($selector[1], $node)) { return true; };
103 if (match_selector($selector[1], $node)) { return true; };
107 $attr_name = $selector[1];
119 $attr_name = $selector[1];
120 $attr_value = $selector[2];
136 $attr_name = $selector[1];
137 $attr_value = $selector[2];
169 function css_selector_specificity($selector) { argument
170 switch ($selector[0]) {
181 foreach ($selector[1] as $subselector) {
189 return css_selector_specificity($selector[1]);
193 return css_selector_specificity($selector[1]);
213 die("Bad selector while calculating selector specificity:".$selector[0]);
220 function selector_get_type($selector) { argument
221 return $selector[0];