<!-- webkit-test-runner [ LayoutFormattingContextEnabled=true InlineFormattingContextIntegrationEnabled=false ] -->
<style>
canvas {
    position: absolute;
    height: 50%;
    border: 1px solid green;
    width: 300px;
}
</style>
<div><canvas></div>
