Open Bug 1673377 Opened 4 years ago Updated 4 years ago

[wpt-sync] Sync PR 26286 - [css-grid] Fix that Replaced Layout doesn't display with a property called |max-width|

Categories

(Core :: Layout: Grid, task, P4)

task

Tracking

()

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 26286 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/26286
Details from upstream follow.

b'Hyunjune <hyunjune.kim@samsung.com>' wrote:

[css-grid] Fix that Replaced Layout doesn't display with a property called |max-width|

The replaced which is the grid item doesn't display with max-width
this type of value is the percentage. Because when the grid container
requests the preferred width of a grid item which is replaced such
as image and so on, replaced grid item returns 0 as width on Constrain-
IntrinsicSizeToMinMax. This patch returns the intrinsic height to
compute the width with the aspect ratio.

Bug: 1127715
Change-Id: Ie448dc1b9ea8af62407b02af89d722054bdce00c
Reviewed-on: https://chromium-review.googlesource.com/2490322
WPT-Export-Revision: 4776b878a7c870c1f6e52aaa668510472074cab4

Component: web-platform-tests → Layout: Grid
Product: Testing → Core
You need to log in before you can comment on or make changes to this bug.