Add support for :scope pseudo-class

This commit is contained in:
Xidorn Quan 2017-10-09 17:01:15 +11:00
parent 715fc9cea6
commit ab46a0bbe0
4 changed files with 25 additions and 1 deletions

View file

@ -284,7 +284,7 @@ fn complex_selector_specificity<Impl>(mut iter: slice::Iter<Component<Impl>>)
Component::FirstChild | Component::LastChild |
Component::OnlyChild | Component::Root |
Component::Empty |
Component::Empty | Component::Scope |
Component::NthChild(..) |
Component::NthLastChild(..) |
Component::NthOfType(..) |