This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
:lang pseudo class should work across shadow boundaries
https://bugs.webkit.org/show_bug.cgi?id=235020 Reviewed by Antti Koivisto. Fixed the bug that :lang pseudo class doesn't work across shadow boundaries. * Source/WebCore/dom/Element.cpp: (WebCore::Element::computeInheritedLanguage const): Walk up the shadow-including ancestors. Note that we don't use parentElementInComposedTree as we don't want to traverse up to a slot. * LayoutTests/fast/shadow-dom/lang-pseudo-class-across-shadow-boundaries-expected.html: Added. * LayoutTests/fast/shadow-dom/lang-pseudo-class-across-shadow-boundaries.html: Added. Canonical link: https://commits.webkit.org/252099@main
- Loading branch information
Showing 3 changed files with 33 additions and 2 deletions.