[css-align][css-inline] Deal with first vs last baseline #210
Labels
Closed Accepted by CSSWG Resolution
Commenter Satisfied
Commenter has indicated satisfaction with the resolution / edits.
css-align-3
Current Work
css-inline-3
Current Work
The CSS Box Alignment spec introduces the ability to choose the last baseline instead of the first for baseline-aligning boxes. This ability needs to also be ported to the
vertical-align
property (in CSS Inline Layout). Note, thevertical-align
property is especially wonky because for inline-tables it uses the first baseline and for inline-blocks it uses the last.The current syntax in Box Alignment is to contrast
baseline
(imported from Flexbox) withlast-baseline
(new in Box Alignment). However, using prefixed keywords would result in a combinatorial explosion if we added it to thealignment-baseline
subproperty ofvertical-align
.Some solutions to this problem:
alignment-baseline
.last
andbaseline
as separated keywords inalign/justify-self/content
as well asalignment-baseline
.last-baseline
inalign/justify-self/content
andlast baseline
inalignment-baseline
.first
vslast
forvertical-align
, and havelast-baseline
decompose tolast
in that property plusbaseline
foralignment-baseline
.first-baseline
andlast-baseline
toalignment-baseline
(to match Align), but also allowfirst
andlast
space-separated prefixes for all values ofalignment-baseline
(to avoid explosion). (This means that bothfirst-baseline
andfirst baseline
would be valid, but eh?)The text was updated successfully, but these errors were encountered: