Skip to content

initial value for universal ("*") syntax definition should not allow CSS-wide keywords #1076

Open
@dbaron

Description

@dbaron

Right now the steps for registering a custom property appear to allow the initial value for registered properties that use the universal syntax definition ("*") to be a CSS-wide keyword (such as inherit, initial, etc.). Since these values are treated specially in custom properties I think they probably shouldn't be allowed in the initial value of a registered property.

I think it's possibly also allowed in the non-universal case as well, depending on how you interpret "computationally independent".

I think these rules should throw an error in step 4 if the value given is a CSS-wide keyword. (It's possible they should also reserve default which is disallowed from being a <custom-ident>, but is not a CSS-wide keyword.)

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