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/anchor-name-007.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>An anchor inside three fixedpos containers should be acceptable for an anchor-positioned element on the outside</title>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<style>
#overlay {
position: fixed;
position-anchor: --a;
width: anchor-size(width);
height: anchor-size(height);
background: green;
}
</style>
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="position:fixed;">
<div style="position:fixed;">
<div style="position:fixed;">
<div style="anchor-name:--a; width:100px; height:100px; background:red;"></div>
</div>
</div>
</div>
<div id="overlay"></div>