Generalize rule_set.media to rule_set.parent_rule, matching DOM Level 2 Style