mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 05:08:36 +02:00
Automatic update from web-platform-tests
[Layout] SetNeedsLayout when an flex-item image loads
Reland of
https://chromium-review.googlesource.com/c/chromium/src/+/2055794 .
Looks like
external/wpt/css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-intrinsic-ratio-003v.html
wasn't fixed by this.
Change-Id: I14c34662b6750a528e6b60a01ba68b58e419f359
Bug: 1052029, 1042329
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2055794
Reviewed-by: Fredrik Söderquist <fs@opera.com>
Commit-Queue: David Grogan <dgrogan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#741392}
--
wpt-commits: ddba88c0796691e1b6b94f2dea159040959933cb
wpt-pr: 21798
26 lines
985 B
HTML
26 lines
985 B
HTML
<!DOCTYPE html>
|
|
<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
|
|
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#content-size-suggestion">
|
|
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
|
|
<meta name="assert" content="Chrome had a bug https://crbug.com/1042329 where min-height:auto was not updated after an image load when the image has a specified height and width.">
|
|
|
|
<style>
|
|
#reference-overlapped-red {
|
|
position: absolute;
|
|
background-color: red;
|
|
width: 100px;
|
|
height: 100px;
|
|
z-index: -1;
|
|
}
|
|
</style>
|
|
|
|
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
|
<div id="reference-overlapped-red"></div>
|
|
|
|
<div style="display: flex; flex-direction: column; height: 5px">
|
|
<img style="width: 100px; height: 100px;" src="support/200x200-green.png">
|
|
<script>
|
|
document.body.offsetTop;
|
|
// This test relies on the harness screenshotting after the image has loaded.
|
|
</script>
|
|
</div>
|