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

Re: [csswg-drafts] [css-sizing-3] Why was min-content, etc. redefined to do nothing in the block axis? (#3973)

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Fri, 13 Dec 2019 11:14:16 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-565403760-1576235655-sysbot+gh@w3.org>
So just to see if I understand 64d08603ce6f37d3cfcc3e70c8462b523e3a42bb, if I have
```css
#grid {
  display: grid;
  block-size: min-content;
  grid-template-rows: minmax(50px, 100px);
}
```

then the height should be `50px` and not `100px`? Chromium used to behave like this, but changed in https://crbug.com/906039

Also, now the spec says "unless otherwise specified, this is equivalent to its automatic size", not "behaves as the property’s initial value". Does this mean that in
```css
#grid-item {
  display: block;
  min-block-size: min-content;
  block-size: 0;
}
```
the item is supposed to behave like `block-size: auto` instead of using an automatic minimum size (that would be 0)? Chromium also used to do this, but changed in https://crbug.com/902863

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3973#issuecomment-565403760 using your GitHub account
Received on Friday, 13 December 2019 11:14:18 UTC

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