W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2016

[csswg-drafts] [css-align][css-inline] Deal with first vs last baseline

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Tue, 21 Jun 2016 21:24:04 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-161543139-1466544243-sysbot+gh@w3.org>
fantasai has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-align][css-inline] Deal with first vs last baseline ==
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:
  1. Explode `alignment-baseline`. 
  2. Use `last` and `baseline` as separated keywords in 
`align/justify-self/content` as well as `alignment-baseline`.
  3. Use `last-baseline` in `align/justify-self/content` and `last 
baseline` in `alignment-baseline`.
  4. Introduce a new property to choose `first` vs `last` for 
`vertical-align`, and have `last-baseline` decompose to `last` in that
 property plus `baseline` for `alignment-baseline`.
  5. Introduce `first-baseline` and `last-baseline` to 
`alignment-baseline`(to match Align), but also allow `first` and 
`last` space-separated prefixes for all values of 
`alignment-baseline`(to avoid explosion). (This means that both 
`first-baseline` and `first baseline` would be valid, but eh?)
  6. Something else?

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/210 using your GitHub 
account
Received on Tuesday, 21 June 2016 21:24:06 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:20 UTC