aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorMichael Rees <mrees@noeontheend.com>2025-04-03 12:30:42 -0500
committerGitHub <noreply@github.com>2025-04-03 17:30:42 +0000
commitdfcd9de138ece3c7999c76cd9ba1d170c27af97b (patch)
tree7a7f3a77a96630d0b0629cc81648cec837d1c346 /components/script
parentf29c18292908f1cea00505341f4611f07ef0276b (diff)
downloadservo-dfcd9de138ece3c7999c76cd9ba1d170c27af97b.tar.gz
servo-dfcd9de138ece3c7999c76cd9ba1d170c27af97b.zip
fix: root element not establishing stacking context (#35390) (#36174)
- [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #35390 - [X] There are tests for these changes [Successful WPT run](https://github.com/reesmichael1/servo/actions/runs/14097679625) (which includes the new test files) (I didn't make the formatting changes intentionally--those came from `mach format` following `mach test-tidy`.) --------- Signed-off-by: Michael Rees <mrees@noeontheend.com>
Diffstat (limited to 'components/script')
-rw-r--r--components/script/layout_dom/element.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/layout_dom/element.rs b/components/script/layout_dom/element.rs
index 6a267f16077..85c04039323 100644
--- a/components/script/layout_dom/element.rs
+++ b/components/script/layout_dom/element.rs
@@ -868,6 +868,10 @@ impl<'dom> ThreadSafeLayoutElement<'dom> for ServoThreadSafeLayoutElement<'dom>
fn is_body_element_of_html_element_root(&self) -> bool {
self.element.is_html_document_body_element()
}
+
+ fn is_root(&self) -> bool {
+ self.element.is_root()
+ }
}
/// This implementation of `::selectors::Element` is used for implementing lazy