<!doctype html>
<title>Containers and inheritance</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support/cq-testcommon.js"></script>
<style>
#outer {
    visibility: hidden;
}
#outer.visible {
    visibility: visible;
}
#container {
    container-type: inline-size;
}
#container.visible {
    visibility: visible;
}
</style>
<div id=outer><div id=container><span id=inner>PASS</span></div></div>
<script>
setup(() => assert_implemen