-
Notifications
You must be signed in to change notification settings - Fork 759
Description
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?