-
Notifications
You must be signed in to change notification settings - Fork 757
Closed
Labels
Closed Accepted by CSSWG ResolutionCommenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-align-3Current WorkCurrent Workcss-inline-3Current WorkCurrent Work
Description
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, the vertical-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) with last-baseline (new in Box Alignment). However, using prefixed keywords would result in a combinatorial explosion if we added it to the alignment-baseline subproperty of vertical-align.
Some solutions to this problem:
- Explode
alignment-baseline. - Use
lastandbaselineas separated keywords inalign/justify-self/contentas well asalignment-baseline. - Use
last-baselineinalign/justify-self/contentandlast baselineinalignment-baseline. - Introduce a new property to choose
firstvslastforvertical-align, and havelast-baselinedecompose tolastin that property plusbaselineforalignment-baseline. - Introduce
first-baselineandlast-baselinetoalignment-baseline(to match Align), but also allowfirstandlastspace-separated prefixes for all values ofalignment-baseline(to avoid explosion). (This means that bothfirst-baselineandfirst baselinewould be valid, but eh?) - Something else?
Metadata
Metadata
Labels
Closed Accepted by CSSWG ResolutionCommenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-align-3Current WorkCurrent Workcss-inline-3Current WorkCurrent Work