[css-align] how to position a baseline-sharing group containing items with different fallback alignment · Issue #3454 · w3c/csswg-drafts (original) (raw)

The spec text on how to position a baseline-sharing group seems confusing to me. I'll illustrate with an example:

1
2
1
2

§9.2 says (in the last bullet) that "opposite block flow direction and opposite baseline alignment preference" share the same baseline group, so the two items above are in the same group.

§9.3 says "Position the aligned baseline-sharing group within the alignment container according to the fallback alignment associated with the specified baseline alignment preference.".
The problem is that "baseline alignment preference" is associated with an item, not a group. In this case the two items have different fallback alignment, so the spec isn't clear how the group should be aligned.

It seems like the spec text in §9.3 assumes that all items in a group have the same specified alignment value, and thus the same fallback value.

I'm guessing that since the relevant baselines are on the same side visavi the container that the group should use start alignment in this case, but the spec could be clearer on this.