Closed Bug 1673030 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 26261 - Map the aspect ratio from width/height to CSS

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
84 Branch
Tracking Status
firefox84 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'Christian Biesinger <cbiesinger@chromium.org>' wrote:

Map the aspect ratio from width/height to CSS

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 https://github.com/whatwg/html/pull/6032.

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

Bug: 1137004
Change-Id: I1253fa2ecf1e176711d3c4d7bd4159f466656ae8
Reviewed-on: https://chromium-review.googlesource.com/2495560
WPT-Export-Revision: 7b43ed4fbb843e3f5e23b59b54af9cab46a3eb64

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Component: DOM: Core & HTML → Layout

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, and Chrome on GitHub CI

Total 3 tests and 1 subtests

Status Summary

Firefox

OK : 2
PASS: 3

Chrome

OK : 2
PASS: 1
FAIL: 2

Links

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/057b7719ffc0
[wpt PR 26261] - Map the aspect ratio from width/height to CSS, a=testonly
https://hg.mozilla.org/integration/autoland/rev/0cd5b1b686bb
[wpt PR 26261] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
You need to log in before you can comment on or make changes to this bug.