<!doctype html>
<title>Container Relative Units: Advanced Container Selection</title>
<link rel="help" href="https://drafts.csswg.org/css-conditional-5/#container-lengths">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/cq-testcommon.js"></script>
<style>
  * { writing-mode: initial; }
  .inline { container-type: inline-size; }
  .size { container-type: size; }
  .vertical { writing-mode: vertical-rl; }
  .w500 { width: 500px; }