Re: [csswg-drafts] [css-overflow-4] Effect of scrollbar-gutter on viewport (#8099)

> Chrome 110
> Only resizes the LVP if scrollbars are actually there.

Is Chrome’s behavior buggy? I checked in Chrome stable (version 116), and the LVP *did* resize even though the scrollbar is not present.

```html
<div class="fixed">987654321</div>
```

```css
html {
  scrollbar-gutter: stable;
}

.fixed {
  position: fixed;
  inset: 0;
  background: gold;
  text-align: right;
}
```

Test page: https://output.jsbin.com/xeyubex/quiet

As you can see in the screenshot, the right-aligned text is fully visible. However, if I resize the browser window, the LVP grows, and the last two numbers “21” are hidden behind the gutter. This must be a bug.

![Screenshot of test page in Chrome](https://github.com/w3c/csswg-drafts/assets/716405/2dffe6d6-769b-41f9-89d9-d27456da7e5f)



-- 
GitHub Notification of comment by simevidas
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8099#issuecomment-1705803251 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 5 September 2023 00:50:24 UTC