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

Subtract scrollbar in PerpendicularContainingBlockLogicalHeight #10641

Merged
merged 2 commits into from
Apr 27, 2018

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Apr 25, 2018

This is an issue that happens in Flexbox and Grid Layout
and any other layout method that uses OverrideLogicalHeight.
In LayoutBox::PerpendicularContainingBlockLogicalHeight()
we were returning the OverrideContentLogicalHeight() plus
the scrollbar height.
That caused issue with orthogonal flows between flex/grid items
and their children.

The issue is fixed just following the suggestion in the TODO
and using OverrideContentLogicalHeight()
(which doesn't include the scrollbar height).

BUG=836827
TEST=external/wpt/css/css-flexbox/percentage-size-subitems-001.html
TEST=external/wpt/css/css-grid/grid-items/percentage-size-subitems-001.html

Change-Id: I0c7586449067aab78430defc831b2774136e2f0b
Reviewed-on: https://chromium-review.googlesource.com/1028012
Commit-Queue: Manuel Rego Casasnovas [email protected]
Reviewed-by: Morten Stenshorne [email protected]
Reviewed-by: Christian Biesinger [email protected]
Reviewed-by: Javier Fernandez [email protected]
Cr-Commit-Position: refs/heads/master@{#553790}

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.

Already reviewed downstream.

@Hexcles
Copy link
Member

Hexcles commented Apr 26, 2018

@foolip this is a lint failure as well

mrego and others added 2 commits April 27, 2018 11:26
This is an issue that happens in Flexbox and Grid Layout
and any other layout method that uses OverrideLogicalHeight.
In LayoutBox::PerpendicularContainingBlockLogicalHeight()
we were returning the OverrideContentLogicalHeight() plus
the scrollbar height.
That caused issue with orthogonal flows between flex/grid items
and their children.

The issue is fixed just following the suggestion in the TODO
and using OverrideContentLogicalHeight()
(which doesn't include the scrollbar height).

BUG=836827
TEST=external/wpt/css/css-flexbox/percentage-size-subitems-001.html
TEST=external/wpt/css/css-grid/grid-items/percentage-size-subitems-001.html

Change-Id: I0c7586449067aab78430defc831b2774136e2f0b
Reviewed-on: https://chromium-review.googlesource.com/1028012
Commit-Queue: Manuel Rego Casasnovas <[email protected]>
Reviewed-by: Morten Stenshorne <[email protected]>
Reviewed-by: Christian Biesinger <[email protected]>
Reviewed-by: Javier Fernandez <[email protected]>
Cr-Commit-Position: refs/heads/master@{#553790}
css/build-css-testsuites.sh succeeds, so this is probably a false positive.
@foolip foolip force-pushed the chromium-export-cl-1028012 branch from b01d041 to 42b69a6 Compare April 27, 2018 09:38
@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 7630b39 into master Apr 27, 2018
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-1028012 branch April 27, 2018 10:06
@gsnedders
Copy link
Member

@foolip's fix for the lint failure was needed because of #9171 which means Travis doesn't catch such cases.

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.

6 participants