Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-conditional/container-queries/no-layout-containment-fixedpos.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Position fixed elements should propagate from a container-type subtree.</title>
<link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
<p>Test passes if there is a filled green square.</p>
<div style="contain: layout; width: 100px; height: 100px; background: red;">
<div style="container-type: inline-size; height: 0;">
<div style="position: fixed; inset: 0; background: green;"></div>
</div>
</div>