wpt / css / css-anchor-position / position-anchor-auto-pseudo-element-implicit-002.html

Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-anchor-position/position-anchor-auto-pseudo-element-implicit-002.html

<!doctype html>
<title>position-anchor auto for ::after pseudo element</title>
<link rel="help" href="https://drafts.csswg.org/css-anchor-position-1/#position-anchor"/>
<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;
        top: anchor(bottom);
    }
</style>
<p>Test passes if there is a filled green square.</p>
<div class="anchor"></div>

/css/reference/ref-filled-green-100px-square-only.html

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
<p>Test passes if there is a filled green square.</p>
<div style="width:100px; height:100px; background:green;"></div>