Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<title>position-anchor normal 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.xht">
<style>
.anchor {
width: 100px;
height: 100px;
background: red;
}
.anchor::after {
width: 100px;
height: 100px;
background: green;
content: "";
position: absolute;
position-anchor: normal;
top: anchor(bottom);
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div class="anchor"></div>