to the contain property.">
<style>
  /* Selectors for contain */
  #none .wrapper {
      containt: none;
  }
  #size .wrapper {
      contain: size;
  }
  #none_to_size .wrapper {
      containt: none;
  }
  #size_to_none .wrapper {
      contain: size;
  }

  /* Selectors for testing sizing as empty */
  .wrapper {
      display: inline-block;
  }
  .box {
      display: inline-block;
      width: 50px;
      height: 5px;
      background: black;
  }
</style>
<body>
  <div id="log"></div>

  <div id="none