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

Re: [csswg-drafts] [css-2][css-flexbox][css-grid] baseline position of inline-flex/inline-grid elements with overflow:hidden

From: Ilya Streltsyn via GitHub <sysbot+gh@w3.org>
Date: Fri, 29 Jun 2018 07:51:29 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-401277476-1530258688-sysbot+gh@w3.org>
According to the spec [for `vertical-align`](https://www.w3.org/TR/2011/REC-CSS2-20110607/visudet.html#propdef-vertical-align),

> **middle**
Align the vertical midpoint of the box with the baseline of the parent box plus half the x-height of the parent.

In other words, this value aligns the vertical center of the box with the vertical center of the _lowercase characters_ of the parent. This point is usually lower than the middle of the line box height, so it shifts the box a bit down. So it's the correct behavior.

GitHub Notification of comment by SelenIT
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2838#issuecomment-401277476 using your GitHub account
Received on Friday, 29 June 2018 07:51:38 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 19 September 2019 01:18:59 UTC