mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 13:18:45 +02:00
Automatic update from web-platform-tests
Check IsReplaced instead of HasAspectRatio
Also make sure to include the border and padding in the minimum
size of a replaced element.
Checking IsReplaced instead of HasAspectRatio is the right thing here
because what this code cares about is the presence of an intrinsic size
Just changing that check exposed the bug that this branch did not add
the border and padding, leading to failed DCHECKs in:
external/wpt/css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-min-height-auto-002{a,b,c}.html
Change-Id: Id6f4bf8e600ee15aed98a3d92098dc0bd0e50fa2
--
wpt-commits: 29019573b9ea063408d27c75703867df7d57a6d1
wpt-pr: 22798
14 lines
725 B
HTML
14 lines
725 B
HTML
<!DOCTYPE html>
|
|
<title>Minimum height of a replaced element with borders</title>
|
|
<link rel="author" title="Google LLC" href="https://www.google.com/" />
|
|
<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#min-size-auto" title="4.5. Implied Minimum Size of Flex Items" />
|
|
<link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
|
|
|
|
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
|
|
|
<div style="height: 100px; overflow: hidden;">
|
|
<div style="display: flex; flex-direction: column; height: 0; width: 100px;">
|
|
<img src="support/1x1-green.png" style="border-bottom: 99px solid green;">
|
|
<div style="background-color: red; min-height: 100px;"></div>
|
|
</div>
|
|
</div>
|