[css-flex] Fix min-width: auto for replaced elements
This is the 'width' version of https://chromium-review.googlesource.com/c/chromium/src/+/2462574 min-width:auto had been using the image's intrinsic widths as the content size suggestion, as returned by image_node.ComputeMinMaxSizes(). But that function honors specified min/main/max widths and the content size suggestion is supposed to ignore those. Now content size suggestion ignores specified width properties and also honors the transferred size -- if the specified height is definite, we pass it through the aspect ratio to determine the content size suggested width. Change-Id: I74ed9d96e584605ad8154cc9cb5a94ef84f78544 Bug: 1132627 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2500448Reviewed-by:Christian Biesinger <cbiesinger@chromium.org> Commit-Queue: David Grogan <dgrogan@chromium.org> Cr-Commit-Position: refs/heads/master@{#821309}
Showing
Please register or sign in to comment