mirror of
https://github.com/servo/servo.git
synced 2025-09-23 05:10:09 +01:00
webdriver: Consider shadow including descendant when computing "obscured" step of “element click” (#38841)
Testing: WebDriver Conformance test. In addition to fixing all "Element Intercepted" errors in https://github.com/yezhizhen/servo/actions/runs/17142506541, we are able to fix many other tests. Fixes: #38837 --------- Signed-off-by: Euclid Ye <euclid.ye@huawei.com>
This commit is contained in:
parent
cae8d22823
commit
66adf2bf9f
4 changed files with 10 additions and 28 deletions
|
@ -1904,7 +1904,7 @@ pub(crate) fn handle_element_click(
|
|||
// `paint_tree` is guaranteed not empty as element is "in view".
|
||||
if !container
|
||||
.upcast::<Node>()
|
||||
.Contains(Some(paint_tree[0].upcast::<Node>()))
|
||||
.is_shadow_including_inclusive_ancestor_of(paint_tree[0].upcast::<Node>())
|
||||
{
|
||||
return Err(ErrorStatus::ElementClickIntercepted);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue