Skip to content

[css-align] definitions of baseline content-alignment seem wrong about which side it adds padding to #1411

@dbaron

Description

@dbaron

The rules on how to add extra space for baseline content-alignment seem to be duplicated (in slightly different form) between Baseline Content-Alignment and Aligning Boxes by Baseline. However, the former says that padding when aligning to first (last) baseline is added on the start (end) side, and the latter seems to say roughly the same except without specifying that it's padding that's added.

This seems to assume that the align-self of a first (last) baseline aligned element is always start (end). However, I don't see anything that ensures this, and in fact I could imagine it being a useful feature to not ensure this. However, it might also be rather difficult to implement, and I think it needs to be thought through a bit.

For example, in a horizontal flex container, suppose you apply align-content: baseline to two display:block flex items, one of which has align-self: end one has align-self: start. Any padding added for first baseline alignment will certainly be added to the bottom of the first, and the top of the second.

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