Commit 08e3d24f authored by Gyuyoung Kim's avatar Gyuyoung Kim Committed by Commit Bot

[css-flexbox] Restore flexitem-stretch-image.html out of WPT

The original WPT migration of flexitem-stretch-image.html has
caused a test failure on Firefox. The test will be updated to
work on Firefox. So, the migrated WPT test needs to be kept
in order to make Firefox have the test. Instead, the original
test is restored in the css3/flexbox to avoid regressions from
the existing behavior. Additionally, this CL adds the test
as flex-item-stretch-image.html to avoid the same naming
confusion with the WPT test.

Bug: 1063749
Change-Id: I2633293f05c3a584e73b6594d12a7c85abe39103
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2135659Reviewed-by: default avatarDavid Grogan <dgrogan@chromium.org>
Commit-Queue: David Grogan <dgrogan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#756943}
parent 499e7201
<!DOCTYPE html>
<title>CSS Flexbox: image stretch</title>
<meta name="assert" content="This test ensures that flexbox stretches a given image
to fit the size of flexitem according to flex values.">
<link rel="issue" href="https://bugs.chromium.org/p/chromium/issues/detail?id=721123">
<link rel="bookmark" href="http://wpt.live/css/css-flexbox/flexitem-stretch-image.html">
<html>
<style>
.flexbox {
width: 600px;
display: flex;
background-color: #aaa;
position: relative;
min-height: 10px;
}
.flexbox > * {
margin: 0;
border: 0;
padding: 0;
min-width: 0;
}
</style>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../../resources/check-layout-th.js"></script>
<body onload="checkLayout('.flexbox')">
<div id=log></div>
<div class="flexbox">
<img data-expected-display="block" data-expected-width="345" style="flex: 1 0 auto;" src="../../images/resources/blue-100.png">
<img data-expected-display="block" data-expected-width="255" data-expected-height="100" style="flex: 1 0 auto;" src="../../images/resources/green-10.png">
</div>
</body>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment