<!doctype html>
<title>CSS Container Queries Test: No crash when ::after is a container</title>
<link rel="help" href="https://drafts.csswg.org/css-contain-3/#query-container">
<link rel="help" href="https://crbug.com/1225381">
<style>
  div::after {
    container-type: size;
    content: '';
    display: block;
  }
</style>
<div>
  PASS if no crash
</div>
