mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #19878 - emilio:slotted-slot, r=nox
selectors: Never match ::slotted on <slot>s. This fixes the test from https://github.com/w3c/web-platform-tests/pull/9212 in Gecko. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19878) <!-- Reviewable:end -->
This commit is contained in:
commit
82922c97dc
7 changed files with 36 additions and 7 deletions
|
@ -784,6 +784,13 @@ impl<'le> ::selectors::Element for ServoLayoutElement<'le> {
|
|||
}
|
||||
}
|
||||
|
||||
fn is_html_slot_element(&self) -> bool {
|
||||
unsafe {
|
||||
self.element.is_html_element() &&
|
||||
self.get_local_name() == &local_name!("slot")
|
||||
}
|
||||
}
|
||||
|
||||
fn is_html_element_in_html_document(&self) -> bool {
|
||||
unsafe {
|
||||
if !self.element.is_html_element() {
|
||||
|
@ -1176,6 +1183,10 @@ impl<'le> ::selectors::Element for ServoThreadSafeLayoutElement<'le> {
|
|||
None
|
||||
}
|
||||
|
||||
fn is_html_slot_element(&self) -> bool {
|
||||
self.element.is_html_slot_element()
|
||||
}
|
||||
|
||||
fn is_html_element_in_html_document(&self) -> bool {
|
||||
debug!("ServoThreadSafeLayoutElement::is_html_element_in_html_document called");
|
||||
true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue