Skip to content

Navigation Menu

Sign in
Appearance settings
Sign up
Appearance settings

[css-break] what happens to block margins that aren't between block-level boxes? #3073

Copy link
Copy link

Description

@dbaron
Issue body actions

There's a section of the spec that defines what happens to block margins that are between block level boxes:

When an unforced break occurs between block-level boxes, any margins adjoining the break truncate to the remaining fragmentainer extent before the break, and are truncated to zero after the break. When a forced break occurs there, adjoining margins before the break are truncated, but margins after the break are preserved. Cloned margins are always truncated to zero on block-level margins.

But what about margins that aren't between block level boxes, such as a margin-block-start of the first child of a block formatting context (BFC), or a margin-block-end of the last child of a BFC?

Also see bug 1487927 about how this relates to column-balancing inside of a multicol... in interesting ways.

Reactions are currently unavailable

Activity

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.