In Firefox this code renders Test and Test2 side-by-side, but in Chrome and IE Edge they are stacked vertically. Which is correct? And how can I make them side-by-side as in Firefox.
Code is as follows:
.grid,
.row,
.column,
.cell {
box-sizing: border-box;
}
.column {
vertical-align: top;
}
.row {
display: table;
table-layout: fixed;
width: 100%;
}
.cell {
display: table-cell;
margin: 0;
vertical-align: top;
}
.half {
width: 50%;
}
<fieldset class='row'>
<legend class=title>Foo</legend>
<fieldset class='cell half'>
<legend class=subtitle>bar</legend>
Test
</fieldset>
<fieldset class='cell half'>
<legend>baz</legend>
Test2
</fieldset>
</fieldset>