fune/testing/web-platform/tests/css/css-grid/alignment/replaced-alignment-with-aspect-ratio-004.html
Christian Biesinger a28a40e269 Bug 1689080 [wpt PR 27347] - [css-grid] Correctly stretch a replaced element in both axes, a=testonly
Automatic update from web-platform-tests
[css-grid] Correctly stretch a replaced element in both axes

As discussed in https://github.com/w3c/csswg-drafts/issues/5713

Change-Id: I90c8bd9c5516d11cae6798d7d7cb6c679e166994
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2651651
Commit-Queue: Christian Biesinger <cbiesinger@chromium.org>
Reviewed-by: Oriol Brufau <obrufau@igalia.com>
Reviewed-by: Javier Fernandez <jfernandez@igalia.com>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Auto-Submit: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#848107}

--

wpt-commits: 199d0dd07e5d5a599da70d19a702943202e3dadf
wpt-pr: 27347
2021-02-02 17:08:04 +00:00

10 lines
649 B
HTML

<!DOCTYPE html>
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5713">
<meta name="assert" content="If stretch alignment is applied to both axis the aspect-ratio of a replaced element is ignored.">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="display: grid; grid-template: 100px / 100px; width: 100px; height: 100px; background: red;">
<img src="support/25x50-green.png" width=25 height=50 style="background: green; align-self: stretch; justify-self: stretch; width: auto; height: auto;"></img>
</div>