Newer
Older
minerva / Tests / LibWeb / Layout / input / block-and-inline / inline-block-with-negative-margin-left.html
@minerva minerva on 13 Jul 415 bytes Initial commit
<!doctype html><style>
  * {
    margin: 0;
    padding: 0;
  }
  body {
    width: max-content;
    border: 5px solid black;
  }
  .foo {
    display: inline-block;
    background: orange;
    width: 100px;
    height: 50px;
  }
  .bar {
    display: inline-block;
    background: magenta;
    margin-left: -50px;
    width: 100px;
    height: 50px;
  }
</style><body><div class="foo"></div><div class="bar"></div>