Aをこの中
:sが、それがここにも記述されているテーブル要素にposition: relative
の効果は未定義であるという事実に基づいており、それが関連フレキシボックスされていない、言及しますケースでは、height: 100%
をスタック上に固定すると絶対位置問題が解決されることが分かります。このルールを追加すると、IEでも同様に動作します。
.tableContainer, table, thead, tr, th { height: 100% }
のSrc:https://davidwalsh.name/table-cell-position-absolute
スタックは
.flexAncestor {
display: flex;
}
.tableContainer {
flex: 1 0 auto; /* not sure if needed. */
}
.tableContainer, table, thead, tr, th { /* added */
height: 100%
}
.ui-column-title {
margin-bottom: 100px;
display: inline-block;
white-space: normal;
}
.ui-column-filter {
position: absolute;
bottom: 10px;
left: 5px;
width: calc(100% - 15px);
}
.testDataTable th {
position: relative;
}
.col1 {
width: 100px;
background: pink;
}
.col2 {
width: 100px;
background: lightblue;
}
<div class="flexAncestor">
<div class="tableContainer">
<table class="testDataTable">
<thead>
<tr>
<th class="col1">
<span class="ui-column-title">id</span>
<input class="ui-column-filter" type="text" />
</th>
<th class="col2">
<span class="ui-column-title">Wrapping column header inside flex ancestor throws layout off in IE11 </span>
<input class="ui-column-filter" type="text" />
</th>
</tr>
</thead>
</table>
</div>
</div>
フレキシボックスが唯一持っている[**部分的にサポート**](http://caniuse.com/#searchスニペット=フレックス) –