Skip to content

[css-contain-3] container :/ size #7142

Closed
@andruud

Description

@andruud

While it's awesome that the new container shorthand grammar allows for ASCII-emojis in the middle of the declaration, it has some drawbacks as well:

  • An empty value is a valid declaration: container:. (Equivalent to none / none).
  • Values equivalent to none / none (the initial values) would serialize as an empty value (e.g. via gCS) per cssom shorthand serialization algos.
  • Values equivalent to none / <something> would serialize as a string starting with /, which looks very odd. (E.g. container: / size).

It seems more normal to make the container-name part non-optional, i.e.:

  <container-name>? [ / <container-type> ]?
                  ^
                 Drop

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