Skip to content

[css-cascade][Editorial] Why list the global values for all? #5740

@LeaVerou

Description

@LeaVerou

https://drafts.csswg.org/css-cascade/#all-shorthand

Value: initial | inherit | unset | revert

These keywords are valid in every other CSS property, yet we don’t list them explicitly. Why should all be an exception? This means that if we add another global keyword, we need to remember to add it here too, and old versions of the spec will be out of sync.

I'd propose changing it to:

Value: (Only global values)

or

Value: (nothing)

or something along these lines and explain in the prose.

Also, we should avoid using "global keywords" in the value, as we may introduce some kind of global value that is not a keyword in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions