mirror of
https://github.com/servo/servo
synced 2026-05-10 17:12:23 +02:00
ServoLayoutElement::parent_element() method shouldn't cross shadow tree boundary. `inheritance_parent` uses `traversal_parent` Testing: `tests/wpt/meta/css/css-lists/counter-list-item-slot-order.html.ini` `tests/wpt/meta/css/css-nesting/host-nesting-003.html.ini` `tests/wpt/meta/css/selectors/is-where-shadow.html.ini` and manual test in the below issue The regression in `tests/wpt/meta/html/rendering/the-details-element/details-blockification.html.ini` has 1 more cause https://github.com/servo/servo/pull/40977#issuecomment-3608471378 Fixes: [#40896](https://github.com/servo/servo/issues/40896) cc: @xiaochengh --------- Signed-off-by: batu_hoang <longvatrong111@gmail.com>