Status: FAIL | Duration: 8ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-position/static-position/top-layer-box-uses-icb-srl-rtl.html
<!DOCTYPE html> <html class="reftest-wait"> <title>Boxes in the top layer use the initial containing block as their static-position rectangle.</title> <link rel="help" href="https://drafts.csswg.org/css-position-3/#staticpos-rect"> <link rel="match" href="top-layer-box-uses-icb-bottom-right-ref.html"> <link rel="author" title="Kiet Ho" href="mailto:kiet.ho@apple.com"> <style> :root { writing-mode: sideways-rl; direction: rtl; } body { margin: 0; padding: 0; } #reference { width: 100px; height: 100px; background: red; } #popover { width: 100px; height: 100px; background: green; /* Override popover UA style */ border: none; padding: 0; inset: auto; } </style> <script src="/common/reftest-wait.js"></script> <script src="/common/rendering-utils.js"></script> <div id="reference"></div> <!-- This green box should fully cover the red box above. --> <div id="popover" popover></div> <script> document.getElementById("popover").showPopover(); waitForAtLeastOneFrame().then(takeScreenshot); </script> </html>
/css/css-position/static-position/top-layer-box-uses-icb-bottom-right-ref.html
<style> #green { position: fixed; bottom: 0; right: 0; width: 100px; height: 100px; background: green; } </style> <div id="green"></div>