Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-position/nested-inline-abspos-child-with-siblings.html
<!DOCTYPE html> <link rel="help" href="https://drafts.csswg.org/css-position/#relpos-inlines"> <link rel="match" href="../reference/ref-filled-green-100px-square-only.html"> <meta name="assert" content="Absolutely positioned child of a position:relative inline box nested inside empty spans with siblings should not be offset by the nesting depth."> <p>Test passes if there is a filled green square.</p> <style> .parent { position: relative; } .inline-content { display: inline-block; top: 0; left: 0; width: 100px; height: 100px; position: absolute; background-color: green; } </style> <div> <span> <span></span> <span> <span></span> <span> <span></span> <span> <span></span> <span class=parent> <div class=inline-content></div> </span> </span> </span> </span> </span> </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>