Skip to content

Commit 413ee88

Browse files
lilleschromium-wpt-export-bot
authored andcommitted
Add :hover test for SVG <use> instance
Bug: 40663285 Change-Id: I83c08a2918f1626ce2662644550f134b57942a0b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7130800 Reviewed-by: Fredrik Söderquist <[email protected]> Commit-Queue: Rune Lillesveen <[email protected]> Cr-Commit-Position: refs/heads/main@{#1541713}
1 parent 5ded9c2 commit 413ee88

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!DOCTYPE html>
2+
<html class="reftest-wait">
3+
<title>SVG Test: :hover effect on &lt;use&gt; element instance</title>
4+
<link rel="help" href="https://svgwg.org/svg2-draft/struct.html#UseStyleInheritance">
5+
<link rel="match" href="/svg/linking/reftests/use-descendant-combinator-ref.html">
6+
<script src="/common/reftest-wait.js"></script>
7+
<script src="/common/rendering-utils.js"></script>
8+
<script src="/resources/testdriver.js"></script>
9+
<script src="/resources/testdriver-actions.js"></script>
10+
<script src="/resources/testdriver-vendor.js"></script>
11+
<style>
12+
rect {
13+
fill: red;
14+
width: 100px;
15+
height: 100px;
16+
}
17+
rect:hover { fill: green; }
18+
</style>
19+
<p>You should see a green square, and no red.</p>
20+
<svg>
21+
<defs>
22+
<rect id="r"></rect>
23+
</defs>
24+
<use href="#r"></use>
25+
</svg>
26+
<script type="module">
27+
await waitForAtLeastOneFrame();
28+
await new test_driver.Actions()
29+
.pointerMove(50, 100)
30+
.send();
31+
takeScreenshot();
32+
</script>

0 commit comments

Comments
 (0)