W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2019

[csswg-drafts] [css-align][css-grid][css-flexbox] align-content:baseline applies to all grid/flex items? (#4545)

From: Mats Palmgren via GitHub <sysbot+gh@w3.org>
Date: Wed, 27 Nov 2019 20:38:22 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-529562901-1574887101-sysbot+gh@w3.org>
MatsPalmgren has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-align][css-grid][css-flexbox] align-content:baseline applies to all grid/flex items? ==
The spec for [align-content](https://drafts.csswg.org/css-align-3/#align-justify-content) says:
> Applies to: block containers, multicol containers, flex containers, and grid containers

An image is not a [block container](https://drafts.csswg.org/css-display-3/#block-container), nor any of the other containers listed.

So, per those definitions, `align-content:baseline` does not apply to an `<img>` grid item.

However, the spec for [Baseline Content-Alignment](https://drafts.csswg.org/css-align-3/#baseline-align-content) says for Grid items:
> A grid item participates in first/last baseline content-alignment in its startmost/endmost row or column (whichever is parallel to its inline axis) and if its computed align-content is first baseline/last baseline. 

A strict reading of the spec implies that Baseline Content-Alignment does **not** apply to an `<img>` grid item since the `align-content` property doesn't even apply to images. Is this is the intention of the spec? I see no particular reason why images, for example, shouldn't be allowed to participate in baseline alignment using `align-content:baseline`.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4545 using your GitHub account
Received on Wednesday, 27 November 2019 20:38:23 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:56 UTC