- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Tue, 11 Oct 2022 23:37:50 +0000
- To: public-css-archive@w3.org
Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-sizing] Fix and clarify examples 6 and 7 ==
https://w3c.github.io/csswg-drafts/css-sizing-4/#cis-scrollbars
Example 6 just has this code:
```css
div {
width: max-content;
contain-intrinsic-size: 100px 100px;
overflow: auto;
}
```
> The element ends up being 100px wide and 100px tall: [`contain-intrinsic-size`](https://w3c.github.io/csswg-drafts/css-sizing-4/#propdef-contain-intrinsic-size) provides the max-content width, and also the height.
This only happens when there is size containment. I think the code should have `contain: size`. Same in example 7.
> If the element then ended up with content that was 150px tall, it would show a vertical scrollbar
Why would it show a vertical scrollbar? There is no `height` nor `max-height`, so I'm assuming the initial values, which allow the element to grow big enough for the 150px.
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7867 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 11 October 2022 23:37:52 UTC