Status: FAIL | Duration: 31ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/svg/interact/use-instance-hover.html
<!DOCTYPE html> <html class="reftest-wait"> <title>SVG Test: :hover effect on <use> element instance</title> <link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/struct.html#UseStyleInheritance"> <link rel="match" href="/svg/linking/reftests/use-descendant-combinator-ref.html"> <script src="/common/reftest-wait.js"></script> <script src="/common/rendering-utils.js"></script> <script src="/resources/testdriver.js"></script> <script src="/resources/testdriver-actions.js"></script> <script src="/resources/testdriver-vendor.js"></script> <style> rect { fill: red; width: 100px; height: 100px; } rect:hover { fill: green; } </style> <p>You should see a green square, and no red.</p> <svg> <defs> <rect id="r"></rect> </defs> <use href="#r"></use> </svg> <script type="module"> await waitForAtLeastOneFrame(); await new test_driver.Actions() .pointerMove(50, 100) .send(); takeScreenshot(); </script>
/svg/linking/reftests/use-descendant-combinator-ref.html
<!doctype html> <meta charset=utf-8> <title>CSS Test reference</title> <p> You should see a green square, and no red. </p> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <rect width="100" height="100" fill="green"/> </svg>