Skip to content

[css-display] Must a non-box-generated containing block be the initial containing block? #1672

Closed

Description

@Loirooriol

The containing block definition says

a containing block is not a box (it is a rectangle), however it is often derived from the dimensions of a box. If properties of a containing block are referenced, they reference the values on the box that generated the containing block. (For the initial containing block, the values are taken from the root element.)

But what if something references a property of a containing block that has not been generated by any box, and is not the initial containing block?

According to CSS 2 and CSS Position, I think this case is not possible, but then you should say so. Otherwise, if it's possible, define what should happen.

Activity

  1. tabatkins commented on Aug 3, 2017

    @tabatkins
    Member

    Other than the ICB, containing blocks are always generated by a box.

  2. Loirooriol commented on Dec 8, 2017

    @Loirooriol
    ContributorAuthor

    @tabatkins This has not been clarified in CSS Display, and one can't trust CSS Position because it's not maintained. So this issue is not fixed.

  3. tabatkins commented on Dec 9, 2017

    @tabatkins
    Member

    As far as I know, nothing needed to be clarified - other than the ICB, every containing block is generated by a box, so any question about CBs that aren't generated by boxes (other than the ICB) is moot.

    But yeah, one can't trust Position.

  4. Loirooriol commented on Dec 9, 2017

    @Loirooriol
    ContributorAuthor

    other than the ICB, every containing block is generated by a box

    It's this statement what I think is not clear. It would be useful to include it in the definition.

  5. fantasai commented on Mar 20, 2018

    @fantasai
    Collaborator

    I'm not sure we need to preclude the possibility in the future--though I don't see us doing it in the future, I don't think we gain anything by locking down the definition here, either. So I think it's fine to leave the definition as-is, and if we end up with more cases like the ICB, define how they work when we create them.

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