<!DOCTYPE html>
<title>Don't crash with a container query container inside canvas</title>
<link rel="help" href="https://drafts.csswg.org/css-contain-3">
<link rel="help" href="https://crbug.com/1321471">
<canvas>
  <div>
    <div style="container-type: size">
      <div>Test</div>
    </div>
  </div>
</canvas>
