Skip to content

[css-display] Do 'contents' and 'none' have an outer display type? #1227

Closed

Description

@Loirooriol

CSS Display says in Box Generation: the none and contents keywords:

Elements with either of these values do not have inner or outer display types, because they don’t generate any boxes at all.

However, in Automatic Box Type Transformations,

Some layout effects require blockification or inlinification of the box type, which sets the box’s outer display type, if it is not none or contents, to block or inline (respectively).

Which is it, do elements with display: contents or display: none have an outer display type with that value, or do they have no outer display types?

Activity

  1. tabatkins commented on May 15, 2017

    @tabatkins
    Member

    Fixed up the latter sentence to call out those values as not generating a box at all, rather than having an outer display type (since outer display types are owned by boxes, which don't exist at all in this case).

  2. tabatkins commented on May 15, 2017

    @tabatkins
    Member

    Fixed in f0a2794

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