- From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
- Date: Mon, 01 Aug 2016 10:17:23 +0000
- To: public-css-archive@w3.org
Just realized / remembered another aspect of `overflow:auto` which
sucks when the `overflow-style` isn't `overlay`: vertical scroll bars
aren't taken into account for inline intrinsic sizing (cause they
can't):
```css
pre {
max-height: 100px;
overflow-y: auto;
width: max-content; /* or width: min-content,
or float:left
or position:absolute
or <td><pre>...</pre></td> */
}
```
This gives you a horizontal scrollbar in addition to the vertical one
when there's vertical overflow, which is not what the author wants
(typically). This wouldn't:
```css
pre {
max-height: 100px;
overflow-y: auto;
overflow-style: overlay;
width: max-content; /* or width: min-content,
or float:left
or position:absolute
or <td><pre>...</pre></td> */
}
```
--
GitHub Notification of comment by frivoal
Please view or discuss this issue at
https://github.com/w3c/csswg-drafts/issues/92#issuecomment-236543256
using your GitHub account
Received on Monday, 1 August 2016 10:19:33 UTC