[Webkit-unassigned] [Bug 243172] :has(:lang(~)) doesn't get invalidated

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 25 12:19:41 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=243172

--- Comment #1 from Ryosuke Niwa <rniwa at webkit.org> ---
There is a bit of design problem here. :lang(~) relies on Element::computeInheritedLanguage(),
which walks up the tree to find the nearest ancestor with lang content attribute.

:has(~) walks descendants to find an element with a matching :lang(~).

Combining these two naively results in O(n^2) behavior.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220725/7fce0578/attachment.htm>


More information about the webkit-unassigned mailing list