Skip to content

[css-contain-2] Incomplete event definition for ContentVisibilityAutoStateChanged #7603

@tidoust

Description

@tidoust

Spec says that a ContentVisibilityAutoStateChanged event gets fired at an element. But ContentVisibilityAutoStateChanged is the name of the interface used by the event, not the name of the event itself. What is the name of the event that fires at the element?

Ideally, the spec would use the fire an event concept defined in DOM with wording similar to:

When the rendering state of an element with content-visibility: auto style changes and the element either becomes or stops being relevant to the user, the user agent must fire an event named contentvisibilityautostatechange at the Element using ContentVisibilityAutoStateChanged.

Also, if you're firing a new event on the Element interface, that interface should be extended to add an onevent event handler IDL attribute to meet the Always add event handlers design principle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions