<!DOCTYPE HTML> <title>Testcase, bug 462844</title> <div style="height: 100px"></div> <div style="background: aqua; height: 20px;"></div> <div style="display:block; background: yellow; width: -moz-fit-content">Should be just below aqua block</div>