Skip to content

[css-properties-values-api] Consume a component name presumably shouldn't allow CSS wide keywords, but it does. #879

@emilio

Description

@emilio

https://drafts.css-houdini.org/css-properties-values-api-1/#consume-syntax-component:

When you hit a name-start code point:

If the stream starts with an identifier, reconsume the current input code point from stream then consume a name from stream, and set component’s name to the returned <ident-token>’s value. Otherwise return failure.

Per #259, I assume that it should match <custom-ident>. Blink does throw for this:

CSS.registerProperty({ name: "--bar", syntax: "inherit", inherits: false, })

cc @andruud @tabatkins

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