Expected: toggling the inner div on and off should not change the outer box height at all, even when the outer div uses a non-standard aspect ratio like 7882 / 5257. The inner div uses width: 100% and height: 100% to fill the parent box, which is the expected setup. Chrome keeps the height stable, which is the expected behavior. In Safari, the height shifts by a few pixels when the inner div is enabled.