Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrollbar-gutter: "force" keyword #25490

Merged
merged 1 commit into from Sep 15, 2020

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Sep 11, 2020

Implementation of "force" for the scrollbar-gutter CSS property.
This keyword forces a gutter on a non-scrollable element, so
it can be accurately aligned with nearby scrollable areas
(e.g. when implementing a header).

css_properties.json5:
scrollbar-gutter becomes non-inheritable, as otherwise the children
inside a "force" element would also get gutters of their own,
messing up the layout. This matches the current editor's draft:
https://drafts.csswg.org/css-overflow-4/#scrollbar-gutter-property

paint_layer:
Assign a scrollable area to "force" elements, in order to calculate
the size of scrollbar gutters.

layout_box:
Assign a layer to "force" elements.
Take "force" into account when checking for scrollbar gutters.
ScrollWidth and ScrollHeight defer to the scrollable area for
"force" elements.

Updated and expanded the scrollbar-gutter tests.

Bug: 710214
Change-Id: Iea25ded4b7b635edeb513a93e30645326eb051e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2404233
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Felipe Erias Morandeira <felipeerias@gmail.com>
Cr-Commit-Position: refs/heads/master@{#806887}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

Implementation of "force" for the scrollbar-gutter CSS property.
This keyword forces a gutter on a non-scrollable element, so
it can be accurately aligned with nearby scrollable areas
(e.g. when implementing a header).

css_properties.json5:
scrollbar-gutter becomes non-inheritable, as otherwise the children
inside a "force" element would also get gutters of their own,
messing up the layout. This matches the current editor's draft:
https://drafts.csswg.org/css-overflow-4/#scrollbar-gutter-property

paint_layer:
Assign a scrollable area to "force" elements, in order to calculate
the size of scrollbar gutters.

layout_box:
Assign a layer to "force" elements.
Take "force" into account when checking for scrollbar gutters.
ScrollWidth and ScrollHeight defer to the scrollable area for
"force" elements.

Updated and expanded the scrollbar-gutter tests.

Bug: 710214
Change-Id: Iea25ded4b7b635edeb513a93e30645326eb051e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2404233
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Felipe Erias Morandeira <felipeerias@gmail.com>
Cr-Commit-Position: refs/heads/master@{#806887}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants