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

Map the aspect ratio from width/height to CSS #26261

Merged
merged 1 commit into from Nov 2, 2020

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Oct 23, 2020

Instead of having special code in image layout, map the aspect ratio that's
computed from the width and height attributes to the aspect-ratio property.

As a side-effect, this patch will also make the aspect-ratio property work
when contain: size is specified in an image (as well as error images when
no alt text is specified).

As specified in whatwg/html#6032.

R=masonfreed@chromium.org, xiaochengh@chromium.org

Bug: 1137004
Change-Id: I1253fa2ecf1e176711d3c4d7bd4159f466656ae8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2495560
Reviewed-by: Yu Han <yuzhehan@chromium.org>
Reviewed-by: Mason Freed <masonfreed@chromium.org>
Commit-Queue: Christian Biesinger <cbiesinger@chromium.org>
Auto-Submit: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#823124}

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-2495560 branch 3 times, most recently from 5222e4d to e5beaa9 Compare October 30, 2020 23:40
Instead of having special code in image layout, map the aspect ratio that's
computed from the width and height attributes to the aspect-ratio property.

As a side-effect, this patch will also make the aspect-ratio property work
when contain: size is specified in an image (as well as error images when
no alt text is specified).

As specified in whatwg/html#6032.

R=masonfreed@chromium.org, xiaochengh@chromium.org

Bug: 1137004
Change-Id: I1253fa2ecf1e176711d3c4d7bd4159f466656ae8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2495560
Reviewed-by: Yu Han <yuzhehan@chromium.org>
Reviewed-by: Mason Freed <masonfreed@chromium.org>
Commit-Queue: Christian Biesinger <cbiesinger@chromium.org>
Auto-Submit: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#823124}
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