Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-anchor-position/container-queries/anchored-fallback-style-containment.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Anchor Positioning Test: container-type:anchored contains style</title>
<link rel="match" href="anchored-fallback-style-containment-ref.html">
<style>
#generate::before { content: counter(c); }
</style>
<p>You should see the number 3 below:</p>
<div style="counter-reset: c 1"></div>
<div style="container-type: anchored; counter-increment: c">
<div style="counter-increment: c"></div>
</div>
<div id="generate" style="counter-increment: c"></div>