Skip to content

[scroll-animations] ViewTimeline IDL specifies that the subject attribute is non-null, but allows construction with no subject specified #13959

@weinig

Description

@weinig

The ViewTimeline IDL specifies that the subject attribute is non-null

readonly attribute Element subject;

but allows construction with no subject set since ViewTimelineOptions does not make subject a required member.

Later in the prose, it states:

"The values of subject, source, and currentTime are all computed when any of them is requested or updated."

but I am not entirely clear on what it would be mean to compute the subject.

I think the spec probably needs to update the IDL to make subject nullable (and ensure all uses of subject by the processing model account for it potentially being null).

(A similar conflict exists for the startOffset/endOffset attributes, and was filed separately as #13844).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions