Closed Bug 1798485 Opened 2 years ago Closed 1 year ago

Add support for the `contentvisibilityautostatechanged` event

Categories

(Core :: Layout, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: mrobinson, Assigned: mrobinson)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-needed)

Attachments

(1 file)

This event tracks changes in relevancy to the content of elements with content-visibility: auto.

See https://w3c.github.io/csswg-drafts/css-contain-2/#content-visibility-auto-state-changed

Add support for the contentvisibilityautostatechanged and fire it when
the relevancy of content-visibility: auto elements change. This change
also fixes the WPT tests for this event. It was using top to access
an element with id=top even though top refers to the top-level browser
window.

Attachment #9301763 - Attachment description: WIP: Bug 1798485 - Add support for the `contentvisibilityautostatechanged` event → Bug 1798485 - Add support for the `contentvisibilityautostatechanged` event r=emilio
Attachment #9301763 - Attachment description: Bug 1798485 - Add support for the `contentvisibilityautostatechanged` event r=emilio → Bug 1798485 - Add support for the `contentvisibilityautostatechange` event r=emilio
Pushed by mrobinson@igalia.com:
https://hg.mozilla.org/integration/autoland/rev/6095dabf5574
Add support for the `contentvisibilityautostatechange` event r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/37573 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
Upstream PR merged by moz-wptsync-bot
Keywords: dev-doc-needed

MDN work can be tracked here https://github.com/mdn/content/issues/23687

@Kagami - Yes - I fixed it in https://github.com/mdn/browser-compat-data/pull/18865 - posted 2 weeks ago, but only merged 2 days ago - so might not have updated on MDN.
You can also see it in the data here: https://github.com/mdn/browser-compat-data/blob/main/api/ContentVisibilityAutoStateChangeEvent.json#L13-L22

Thanks for keeping a close eye on this. We did initially get it wrong (I just copied the release status for content-visibility: auto which was wrong)

Flags: needinfo?(hamishwillee)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: