Support :scope pseudo-class in Element::matches for stylo

This commit is contained in:
Xidorn Quan 2017-10-09 17:01:36 +11:00
parent ab46a0bbe0
commit ba44d18ddb

View file

@ -1530,6 +1530,7 @@ pub unsafe extern "C" fn Servo_SelectorList_Matches(
None,
element.owner_document_quirks_mode(),
);
context.scope_element = Some(element.opaque());
selectors::matching::matches_selector_list(selectors, &element, &mut context)
}