Automatic update from web-platform-tests Fix #59047 - fix SVG fresh specs links -- wpt-commits: bc058f342f2aed8c63fdb6f0f35249952d076eb7 wpt-pr: 59066
33 lines
958 B
HTML
33 lines
958 B
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>
|