This CL implements the propagation of scrollbar-gutter from the
root element to the viewport.
Relevant CSSWG discussion:
https://github.com/w3c/csswg-drafts/issues/6079
LayoutBox will not try to apply scrollbar gutters to the element
which propagated its overflow properties to the viewport
("viewport-defining element") to avoid duplicating the ones
that may be created by the viewport itself.
Note: following the current CSSOM View spec, clientWidth and
clientHeight in the viewport-defining element will return the
corresponding viewport dimension excluding the size of any
rendered scrollbars, but not excluding empty scrollbar gutters:
https://www.w3.org/TR/cssom-view-1/#dom-element-clientwidth
https://www.w3.org/TR/cssom-view-1/#dom-element-clientheight
Bug: 710214
Change-Id: I65dca9791125d91b8be7b7c51779d5821f232cf9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2766822
Commit-Queue: Felipe Erias <[email protected]>
Reviewed-by: Philip Rogers <[email protected]>
Reviewed-by: Christian Biesinger <[email protected]>
Cr-Commit-Position: refs/heads/master@{#871779}