Closed Bug 1726485 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 30083 - content-visibility: Avoid updating style in hidden subtrees for focus.

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 30083 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/30083
Details from upstream follow.

b'Vladimir Levin <vmpstr@chromium.org>' wrote:

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/3104325
WPT-Export-Revision: 81e91ae916611d19a62c8725ec0baf57f90c4e64

Component: web-platform-tests → Layout
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 2 tests

Status Summary

Firefox

PASS: 1
FAIL: 1

Chrome

PASS: 1
FAIL: 1

Safari

PASS: 1
FAIL: 1

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/css/css-contain/content-visibility/content-visibility-082.html: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7f00e7b6372e [wpt PR 30083] - content-visibility: Avoid updating style in hidden subtrees for focus., a=testonly https://hg.mozilla.org/integration/autoland/rev/006402f072ea [wpt PR 30083] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.