Skip to content

[css-display] Position of 'list-item' when serializing <display-listitem> #1621

Closed

Description

@Loirooriol

The summary table in CSS Display says that list-item inline flow serializes to inline list-item.

However, the syntax is

<display-listitem> = list-item && <display-outside>? && [ flow | flow-root ]? ;

Then, according to the "shortest serialization" principle (which is going to be reintroduced in #1564), it should serialize to list-item inline:

Where multiple CSS component values can appear in any order without changing the meaning of the value (typically represented by a double bar || in the value syntax), use the order as given in the syntax.

Therefore, I think either the summary table should say list-item inline or the syntax of <display-listitem> should move the list-item keyword to the end.

Activity

  1. Loirooriol commented on Mar 20, 2018

    @Loirooriol
    ContributorAuthor

    @tabatkins Then you should also reorder list-item block flow and list-item inline flow entries in the "Full display" column of the summary table.

  2. fantasai commented on Mar 20, 2018

    @fantasai
    Collaborator

    @Loirooriol Done, thanks.

  3. added
    Commenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.
    on Mar 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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