forked from mirrors/gecko-dev
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
26 lines
610 B
HTML
26 lines
610 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>CSS Reference: 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/">
|
|
<meta charset="utf-8">
|
|
<style>
|
|
.ib {
|
|
display: inline-block;
|
|
}
|
|
.innerFlex {
|
|
display: flex;
|
|
height: 200px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
abc
|
|
<div class="ib">
|
|
<div class="innerFlex">
|
|
<input value="def">
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|