Closed Bug 1787109 Opened 4 years ago Closed 3 years ago

[wpt-sync] Sync PR 35612 - Add aspect-ratio test for failing images

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox107 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

jakearchibald <jaffathecake@gmail.com> wrote:

Add aspect-ratio test for failing images

http://wpt.live/css/css-sizing/aspect-ratio/replaced-element-028.html - this asserts that aspect-ratio is not applied to images if the image fails to load.

However, I think it should apply if the image is display:block or display:inline-block.

@tabatkins @fantasai can you confirm that this is test is correct?

Safari currently fails this test. It renders the image with a 1:1 ratio.

Component: web-platform-tests → Layout
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/71b08b8f9a77 [wpt PR 35612] - Add aspect-ratio test for failing images, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
You need to log in before you can comment on or make changes to this bug.