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

Re: [csswg-drafts] [css-2] overflow: hidden cause extra space

From: Ilya Streltsyn via GitHub <sysbot+gh@w3.org>
Date: Thu, 28 Jun 2018 17:54:36 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-401120120-1530208475-sysbot+gh@w3.org>
Very good question! It applies to `inline-grid` elements as well. I found no remark about them like that for the inline-blocks in neither CSS Flexbox nor CSS Display specs, so the behavior of Blink and Edge seems to be technically spec-compliant. However, in case when such an element with `overflow: hidden` (or `auto`/`scroll`) has fixed height and it's content has much vertical space _above_ its first text line (see the fork of your pen), I'd say that the Gecko's behavior, reusing the logic for inline-blocks, makes more sense.

-- 
GitHub Notification of comment by SelenIT
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2838#issuecomment-401120120 using your GitHub account
Received on Thursday, 28 June 2018 17:54:40 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 28 June 2018 17:54:41 UTC