[css-align-3][css-multicol-1] First baseline of a multicol · Issue #7856 · w3c/csswg-drafts (original) (raw)

From: #7639 (comment)

In reviewing the last-baseline behaviour for multi-col we discovered that the first-baseline behaviour of multicol is inconsistent.

For example:
https://www.software.hixie.ch/utilities/js/live-dom-viewer/?saved=10862

baseline
line1
line2
line3
line4
line5

And:
https://www.software.hixie.ch/utilities/js/live-dom-viewer/?saved=10863

baseline
line1
line2
line3
line4
line5

Currently all engines take the first-baseline from the "first" column - if there isn't a baseline within that column we'll produce no baseline for the entire multicol.

Is this desired?

Two options which are better (IMO) than the status quo.

  1. As @mstensho suggests take the highest baseline from the entire multicol (including spanners for example). This makes it symmetrical with last-baseline (taking the lowest).
  2. Take the first-baseline from the first column/span with a baseline. With this approach for example number 2 the baseline will be the first-baseline of the 2nd column.

Ian