gecko-dev/testing/web-platform/tests/css/css-flexbox/shrinking-column-flexbox.html
Gyuyoung Kim 301e731d8f Bug 1626510 [wpt PR 22589] - [css-flexbox] Move shrinking-column-flexbox.html test to WPT, a=testonly
Automatic update from web-platform-tests
[css-flexbox] Move shrinking-column-flexbox.html test to WPT

This CL moves shrinking-column-flexbox.html test from
css3/css-flexbox to external/wpt/css/css-flexbox with WPT
styles, adding links to the relevant specs, and test description.

Bug: 1063749
Change-Id: Icd2467a296cbf6c38610371d5cdfe01fec548b15
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2131170
Reviewed-by: Robert Ma <robertma@chromium.org>
Reviewed-by: David Grogan <dgrogan@chromium.org>
Commit-Queue: David Grogan <dgrogan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#755629}

--

wpt-commits: f86dfc6d59f64546eb48a994011552564b8f0e2b
wpt-pr: 22589
2020-04-06 12:44:01 +00:00

54 lines
1.1 KiB
HTML

<!DOCTYPE html>
<title>CSS Flexbox: Shrink column</title>
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-property">
<link href="support/flexbox.css" rel="stylesheet">
<meta name="assert" content="This test ensures that flexbox shrinks the column height of a flex item
after applying a new style.">
<style>
body {
width: 800px;
height: 600px;
}
.green {
background: green;
}
.blue {
background: blue;
}
.inner {
height: 200px;
}
.small {
height: 100px;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<script>
onload = function() {
document.body.offsetWidth;
document.getElementById("target").classList.add("small");
checkLayout("body");
};
</script>
<body class="flexbox column">
<div class="flexbox column flex-one-one-auto">
<div class="flex-one-one-auto green" data-expected-height="250" id="target">
<div class="inner"></div>
</div>
<div class="flex-one-one-auto blue" data-expected-height="350">
<div class="inner"></div>
</div>
</div>
<div id=log></div>