Skip to content

[css-inline-3][css-writing-modes] Baseline Alignment of Mixed Vertical Orientations #5424

@fantasai

Description

@fantasai

In CSS Writing Modes, text and inline boxes are aligned using the central baseline. This gives the correct behavior across font changes and also across orientation changes.

However, dominant-baseline and alignment-baseline properties introduced by SVG / CSS Inline Layout Level 3 allow changing the baseline away from central. When orientations are mixed, this can result in some nonsensical things. For example, vertical baseline tables often set their alphabetic baseline to coincide with the central baseline. If you try to align an upright run (where the alphabetic baseline is central) with a sideways run (where the alphabetic baseline is to one side of the run) the result will not make any sense. They are trying to align using two different, incompatible baseline tables, essentially.

I think we need to make some special rules for when sideways and upright text are aligned to each other.

Note: This issue is derived from @kojiishi’s #5381, but it's about baseline metrics instead of ascent/descent.

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