Open bfgeek opened 2 years ago
We synthesize all of the baselines (central, alphabetic, etc.). The container decides which to use based on the item’s alignment-baseline
property (which by default, defers to the container’s dominant-baseline
property).
As for the orientation, if the text-orientation of the item is the opposite of the context, we mirror it anyway, so no matter which orientation we synthesize, the set that we end up using will match the context.
Let us know if something remains unclear?
https://drafts.csswg.org/css-align-3/#synthesize-baseline
The spec is pretty clear about the writing mode to use etc, however not clear about how to interpret the text-orientation property. E.g.
(note ignore current rendering of all browsers here - they are wrong).
When synthesizing a baseline within a grid/flex context, do we synthesize based off the containers text-orientation, or the items?
(I think it should be the container - as this matches inline layout).
@fantasai @tabatkins