зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1523562 [wpt PR 14876] - SVG Interactivity: onwheel attribute, a=testonly
Automatic update from web-platform-tests SVG Interactivity: onwheel attribute (#14876) * SVG Interactivity: onwheel attribute Test that script specified by the the onwheel attribute is run in response to mouse wheel events. https://github.com/w3c/svgwg/issues/627 * [svg] move test to svg/interact/manual -- wpt-commits: bdac00f5b982f0fa19d2c1cd91b373d83addde4e wpt-pr: 14876
This commit is contained in:
Родитель
8d90be0838
Коммит
b9ce737abc
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:h="http://www.w3.org/1999/xhtml"
|
||||
width="100%" height="100%" viewBox="0 0 480 360">
|
||||
<title>Event attributes - onwheel</title>
|
||||
<metadata>
|
||||
<h:link rel="help" href="https://svgwg.org/svg2-draft/interact.html#EventAttributes"/>
|
||||
<h:link rel="help" href="https://svgwg.org/svg2-draft/attindex.html#RegularAttributes"/>
|
||||
<h:meta name="assert" content="onwheel attribute runs script in response to wheel events"/>
|
||||
</metadata>
|
||||
<style>
|
||||
text {
|
||||
font-size: 12px;
|
||||
}
|
||||
#target {
|
||||
fill: yellow;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
'use strict';
|
||||
function complete() {
|
||||
document.getElementById('target').style.fill = 'lime';
|
||||
}
|
||||
</script>
|
||||
<text x="30" y="30">Select the box, use the mouse wheel and check that the box become green.</text>
|
||||
<rect id="target" x="140" y="160" width="200" height="200" onwheel="complete()" />
|
||||
</svg>
|
После Ширина: | Высота: | Размер: 958 B |
Загрузка…
Ссылка в новой задаче