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

[css-grid] Fix up that the width of nested grid container with margin:auto is zero #26376

Merged
merged 1 commit into from Nov 23, 2020

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Nov 3, 2020

the width of nested grid container with margin:auto is zero when their
item has 'max-height'. so the grid item's position is incorrect because
the value of auto-margin computed with 'width' is wrong. Because intrin-
sic width is not updated so they use the old intrinsic width.
This patch is checking the dirty of the intrinsic logical width when
the grid area is changed in |UpdateGridAreaLogicalSize|.

Bug: 1149143
Change-Id: I4d4bf839723f05c60ed91b80148caf7b504d5aa1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2503910
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Javier Fernandez <jfernandez@igalia.com>
Commit-Queue: Hyunjune Kim <hyunjune.kim@samsung.com>
Cr-Commit-Position: refs/heads/master@{#830086}

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.

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-2503910 branch 2 times, most recently from 201cba3 to 7b6c1f2 Compare November 3, 2020 09:49
@chromium-wpt-export-bot chromium-wpt-export-bot changed the title [css-grid] Fix up that the width of nested gird container with margin:auto is zero [css-grid] Fix up that the width of nested grid container with margin:auto is zero Nov 4, 2020
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-2503910 branch 9 times, most recently from f040227 to fa981df Compare November 7, 2020 14:55
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-2503910 branch 5 times, most recently from 8bd2c33 to 6e8f1ef Compare November 20, 2020 10:35
…:auto is zero

the width of nested grid container with margin:auto is zero when their
item has 'max-height'. so the grid item's position is incorrect because
the value of auto-margin computed with 'width' is wrong. Because intrin-
sic width is not updated so they use the old intrinsic width.
This patch is checking the dirty of the intrinsic logical width when
the grid area is changed in |UpdateGridAreaLogicalSize|.

Bug: 1149143
Change-Id: I4d4bf839723f05c60ed91b80148caf7b504d5aa1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2503910
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: Javier Fernandez <jfernandez@igalia.com>
Commit-Queue: Hyunjune Kim <hyunjune.kim@samsung.com>
Cr-Commit-Position: refs/heads/master@{#830086}
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

3 participants