Closed Bug 1797447 Opened 2 years ago Closed 1 year ago

css/css-contain/content-visibility/content-visibility-068.html is failing

Categories

(Core :: Layout, defect)

defect

Tracking

()

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: mrobinson, Assigned: mrobinson)

References

Details

Attachments

(1 file)

This test is failing after the implementation of content-visibility: auto. The reasons seems to be related to the fact that the content-visibility: auto initially has focus when in Chrome it does not.

The issue here seems to be in the last step. The test runs blur() on a focused offscreen element inside a content-visibility: auto element. This should cause the contents to no longer be relevant and to be hidden. This isn't happening because in Gecko, the blur() call is removing focus, but the selection is still on the parent element with content-visibility: auto. I think in this case the test could focus another element to ensure that the selection also moves entirely away from the content-visibility: auto contents and element.

Severity: -- → S3

Fix a WPT test relating to content-visibility: auto and
content-relevancy. This test attempts to change the relevancy of content
by blurring it, but relevancy also depends on selection. Apparently,
Gecko differs from other browsers in that blur() is not moving the
selection as well. The fix is to simply focus another element which will
update both focus and the text selection.

Assignee: nobody → mrobinson
Status: NEW → ASSIGNED
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/37322 for changes under testing/web-platform/tests
Pushed by smolnar@mozilla.com:
https://hg.mozilla.org/mozilla-central/rev/978147969b8e
css/css-contain/content-visibility/content-visibility-068.html r=emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: