58 |
($selector); |
($selector); |
59 |
for (@{$selectors_to_elements->{$selector_str}}) { |
for (@{$selectors_to_elements->{$selector_str}}) { |
60 |
my $current_specificity = $elements_to_specificity->{refaddr $_}; |
my $current_specificity = $elements_to_specificity->{refaddr $_}; |
61 |
if ($selector_specificity->[0] > $current_specificity->[0] or |
if (not defined $current_specificity or ## "*"-only case. |
62 |
|
$selector_specificity->[0] > $current_specificity->[0] or |
63 |
$selector_specificity->[1] > $current_specificity->[1] or |
$selector_specificity->[1] > $current_specificity->[1] or |
64 |
$selector_specificity->[2] > $current_specificity->[2] or |
$selector_specificity->[2] > $current_specificity->[2] or |
65 |
$selector_specificity->[3] > $current_specificity->[3]) { |
$selector_specificity->[3] > $current_specificity->[3]) { |