eature of layout containment applies to inline blocks.">
<style>
.wrapper {
  border: solid thick;
  margin: 1em;
}
</style>
<p>Test passes if it has the same output than the reference.</p>
<div class="wrapper">
  <span style="display: inline-block; margin: 1em 0; vertical-align: top; contain: layout;">
    <div style="margin: 1em 0;">This text should have 2em top and bottom margins (margins do not collapse).</div>
  </span>
</div>
