Skip to content

[css-animations] Allow CSSKeyframesRule.name to set reserved values #801

@Manishearth

Description

@Manishearth

https://drafts.csswg.org/css-animations/#dom-csskeyframesrule-name

Setting this property to a value matching a CSS-wide keyword or any keyword defined for the animation-name property will throw a SyntaxError exception.

However, it is already possible to create a keyframes rule with a name matching a CSS-wide keyword using a string -- @keyframes "initial" {..} works (See https://drafts.csswg.org/css-animations/#typedef-keyframes-name and Example 2 below it). The DOM setter should be able to create such rules, so we should remove the ability for the setter to throw a syntax error and allow all strings.

cc @canaltinova @dbaron

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