Skip to content

[css-animations] Serialize all keyframe names as strings #2435

@csnardi

Description

@csnardi

After #118 and #801, support for naming a keyframe the same as a reserved keyword by using a <string> was added to parsing and CSSOM setting. The WPT test for this part of the spec seems to assume that if a keyword could be parsed as an <ident>, then it would be serialized as a string (with quotation marks); otherwise, no quotation marks would be used. However, this seems needlessly complex; wouldn't it be easiest just to serialize all keyframe names as strings? That way, it would be ensured that re-parsing the output would generate an identical rule, without having to check if the name is an <ident>.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Agenda+

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions