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/position-anchor-auto-pseudo-element-implicit-001.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>position-anchor auto for ::after pseudo element</title>
<link rel="author" title="Suraj Thanugundla" href="mailto:contact@surajt.com" />
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<style>
.anchor {
width: 100px;
height: 50px;
background: green;
}
.anchor::after {
width: 100px;
height: 50px;
background: green;
content: "";
position: absolute;
position-anchor: auto;
position-area: block-end;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div class="anchor"></div>