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

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