File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
testing/web-platform/tests/svg/interact Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html class ="reftest-wait ">
3+ < title > SVG Test: :hover effect on <use> 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 >
You can’t perform that action at this time.
0 commit comments