fune/testing/web-platform/tests/css/css-flexbox/flexbox-baseline-nested-001.html
Daniel Holbert 570c828b36 Bug 1672640 part 2: Fall back to GetNaturalBaselineBOffset to ask flex items what their baseline is. r=TYLin
Our earlier call to nsLayoutUtils::GetFirstLineBaseline/GetLastLineBaseline
works in most cases, but those APIs don't handle every frame type and fails for
text control frames (for example).  This new call should handle those cases
by directly asking the frame for its baseline.

Differential Revision: https://phabricator.services.mozilla.com/D121922
2021-08-06 18:46:21 +00:00

35 lines
938 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Test: Baseline of nested flex containers with stretched textfield inside</title>
<link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
<link rel="author" title="Mozilla" href="http://www.mozilla.org/">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1672640">
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#flex-baselines">
<link rel="match" href="flexbox-baseline-nested-001-ref.html">
<style>
.ib {
display: inline-block;
}
.outerFlex {
display: flex;
}
.innerFlex {
display: flex;
height: 200px;
}
</style>
</head>
<body>
abc
<div class="ib">
<div class="outerFlex">
<div class="innerFlex">
<input value="def">
</div>
</div>
</div>
</body>
</html>