Skip to content

[css-align][css-grid] synthesized baselines are insufficiently specified #134

@MatsPalmgren

Description

@MatsPalmgren

I'm trying to understand what bullet 3 here means:
https://drafts.csswg.org/css-grid/#grid-baselines

What does "failing that" mean there? I read it as, "if there
are no grid items", but I don't know if you mean synthesizing
a baseline from a grid item can fail in some way. Furthermore...

https://drafts.csswg.org/css-align-3/#synthesize-baselines
"To synthesize baselines from a rectangle (or two parallel lines),
synthesize the alphabetic baseline from the lower line and the central
baseline by averaging the positions of the upper and lower lines."

I don't understand what precise code I should write to implement
this paragraph. Does "averaging the positions" mean I should take
the distance between the two lines and divide it by 2 to get
the alignment baseline to use? IOW, the synthesized baseline of
a content box is the center of the content box in the relevant axis?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions