<!DOCTYPE html>
<html class=reftest-wait>
<title>Container Relative Units in gradients</title>
<link rel="help" href="https://drafts.csswg.org/css-conditional-5/#container-lengths">
<link rel="match" href="container-units-gradient-ref.html">
<script src="/common/reftest-wait.js"></script>
<script src="/common/rendering-utils.js"></script>
<style>
  .container {
    container-type: size;
    width: 500px;
    height: 400px;
    display: flex;
    flex-wrap: wrap;
  }
  .smaller {
    width: 400px;
    height