Skip to content

[css-align] place-items shorthand has wrong grammar #763

@MatsPalmgren

Description

@MatsPalmgren

https://drafts.csswg.org/css-align/#place-items-property
The grammar allows auto in the first (or single) value.
It shouldn't allow it because align-items doesn't have an auto value:
https://drafts.csswg.org/css-align/#propdef-align-items

So, I think the correct grammar should be:

<x> = [ normal | stretch | <baseline-position> | <self-position> ]
place-items:  <x> [ auto | <x> ]?

IOW, auto should only be allowed as a second value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions