Skip to content

[css-box-4] margin-trim auto-margins needs more clarification wrt. fallback alignment. #11397

@bfgeek

Description

@bfgeek

Consider:

<!DOCTYPE html>
<div style="display: flex; margin-trim: block; align-items: end; width: 100px; border: solid 2px; height: 100px;">
  <div style="background: lime; margin: auto;">hi</div>
  <div style="background: lime; margin: auto;">hi</div>
</div>

Presuming that auto margins are trimmed, should the alignment of the items be the start or the end?

https://drafts.csswg.org/css-box-4/#margin-trim

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