Bug
1726485 [wpt PR 30083] - content-visibility: Avoid updating style in hidden subtrees for focus., a=testonly
Automatic update from web-platform-tests
content-visibility: Avoid updating style in hidden subtrees for focus.
This patch ensures that we first check whether the element is in a
hidden subtree that prevents focus activation before forcing a style
and layout tree update.
This means that we can now set a content-visibility: hidden on a
container which has a currently focused element and it will clear
that focused element _without_ first updating style and layout
tree in the subtree (due to a check whether the currently focused
element is focusable).
R=chrishtr@chromium.org, futhark@chromium.org
Change-Id: I95a69fa3e89fe317825edcfd5e73bdde58d18cd8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/
3104325
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: vmpstr <vmpstr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#913459}
--
wpt-commits:
d97a9fc1e67d00eb5a2725f661df203395dd9ccb
wpt-pr: 30083