Skip to content

[cssom][web-animations-1] Consistent behavior for invalid pseudos in getComputedStyle/getAnimations #11081

@vmpstr

Description

@vmpstr

We resolved in #9908 to add a pseudo element to getAnimations which shifts the target of the call to the pseudo element instead of the originating element.

In the PR #11050 a question came up of what to do if it's invalid. Other web animation functions throw an exception which is what we added in the PR. Then, checking getComputedStyle MDN says that it throws, but neither @flackr nor I couldn't spot anything in the spec that would say it throws.

Filing this to resolve on consistent treatment and proposing that we throw a SyntaxError DOMException if the pseudo element is invalid.

/cc @flackr

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions