Bug Tracker

Ticket #4228: svgtest.xhtml

File svgtest.xhtml, 1.9 KB (added by anko, 11 years ago)

test case. The dashed squares and circles should be hidden onload.

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg" >
3 <head>
4  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5  <script type="text/javascript" src="jquery-1.3.2.js"></script>
6  <script type="text/javascript">
7<![CDATA[
8
9
10$(document).ready(function(){
11    var pos = -50;
12    $(".brushcursor").attr("cx", pos  );
13    $(".brushcursor").attr("cy", pos );
14    $(".brushcursor").attr("x", pos );
15    $(".brushcursor").attr("y", pos );
16});
17
18]]>
19  </script>
20 </head>
21 <body >
22  <svg:svg id="svgcanvas" style='border:solid #eee 1px;background:#ffa' width="300" height="300">
23    <svg:circle class="brushcursor" id="c0" cx="150" cy="150" r="20" stroke-width="1" stroke-dasharray="6,3"  stroke="grey" fill="none" style="stroke-opacity:0.5"/>
24    <svg:rect class="brushcursor" id="c1" width="40" height="40" x="150" y="150" stroke-width="1" stroke-dasharray="6,3"  stroke="grey" fill="none" style="stroke-opacity:0.5"/>
25    <svg:circle class="brushcursor" id="c2" cx="150" cy="150" r="20" stroke-width="1" stroke-dasharray="6,3"  stroke="red" fill="none" style="stroke-opacity:0.5"/>
26    <svg:rect class="brushcursor" id="c3" width="40" height="40" x="150" y="150" stroke-width="1" stroke-dasharray="6,3"  stroke="red" fill="none" style="stroke-opacity:0.5"/>
27    <svg:circle class="brushcursor" id="c4" cx="150" cy="150" r="10" stroke-width="1" stroke-dasharray="6,3"  stroke="grey" fill="none" style="stroke-opacity:0.5"/>
28  </svg:svg>
29<!--
30   <canvas id="canvas" width="300" height="300" style="position:absolute;left:20px;top:20px;z-index:1;" ></canvas>
31-->
32
33  <div id="errors">
34In jquery 1.3.1 the drawn objects are hidden (the position of them is set to -50,-50. <br />
35In jquery 1.3.2 they don't get hidden.    <br /><br />
36  </div>
37<br/>
38 </body>
39</html>
40