Re: [csswg-drafts] [css-overflow] scrollbar-gutter should not do anything for non-scrollable boxes (#6028)

@emilio:

If I remember correctly, `force` elements get their own layer in Chromium simply because a `PaintLayerScrollableArea` is used to calculate the thickness of the element's hypothetical scrollbars. This is only strictly necessary to support custom scrollbars, otherwise it would be enough to query the current scrollbar theme.

(One advantage of supporting custom scrollbars is that they make it possible to write accurate and portable web tests, because their thickness can be specified explicitly)

A better implementation would reduce the number of layers to those strictly needed, thanks for pointing it out.

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


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

Received on Saturday, 27 February 2021 13:09:43 UTC