Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / prevent-default.svg
blob3b28cc9c27d06eee5d0969021ba02d12e5aea01a
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintAndPixelTest()">
2 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/>
3 <defs>
4 <script type="text/ecmascript">
5 <![CDATA[
6 function changeColor(evt) {
7 evt.target.setAttribute('fill', 'green');
8 evt.stopPropagation();
9 evt.preventDefault();
10 if (window.testRunner)
11 testRunner.notifyDone();
14 function repaintTest() {
15 if (window.eventSender) {
16 testRunner.waitUntilDone();
17 eventSender.mouseMoveTo(50, 50);
18 eventSender.mouseDown();
19 eventSender.mouseUp();
22 ]]>
23 </script>
24 </defs>
25 <a xlink:href="javascript:void(document.getElementById('rect').style.fill='red')">
26 <rect id='rect' onclick="changeColor(evt)" width='100' height='100' fill='orange' />
27 </a>
28 </svg>