Skip to content

[css-display] How are 'list-item run-in flow' and 'list-item block flow-root' serialized? #1493

Closed

Description

@Loirooriol

Some display values with list-item keyword can be shortened to a single keyword:

  • list-item block flow can be shortened to list-item
  • list-item inline flow can be shortened to inline-list-item

Some display values with list-item keyword require all three keywords:

  • list-item run-in flow-root
  • list-item inline flow-root

The other display values with list-item keyword can be shortened to two keywords:

  • list-item run-in flow can be shortened to list-item run-in
  • list-item block flow-root can be shortened to list-item flow-root

This question is about the last case. Do they serialize to the two-keyword shortened form, or do they stay in the full form?

CSS Display says

Following the precedence rules of “most backwards-compatible, then shortest”, serialization of equivalent display values uses the “Short display” column.

So it seems short forms are preferred, but these combinations do not appear in the summary table!

Activity

  1. tabatkins commented on Jul 11, 2017

    @tabatkins
    Member

    The table is an informative guide to help authors, not a normative and complete mapping table. The note at the end is just that—a note, reminding you that things get serialized to their shortest form, and that the table contains many of those. But the "3 keywords that can be written as 2" is already covered by that general principle.

    (However, see #1564.)

  2. fantasai commented on Jul 11, 2017

    @fantasai
    Collaborator

    (Marking Wontfix because we won't fix the informative table; but the serialization should be clearly defined in CSSOM, and #1564 is open against it to ensure it contains the general rules for serialization once again.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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