W3C home > Mailing lists > Public > www-svg@w3.org > July 2003

Test bed suggestion

From: Michael Bierman <SVGEvangelist@thebiermans.net>
Date: Wed, 23 Jul 2003 00:00:19 -0700
To: "Www-Svg@W3. Org" <www-svg@w3.org>
Message-ID: <KLEEICLJKBLPGLFMAGJGIEBODNAA.SVGEvangelist@thebiermans.net>
I was looking at
http://www.w3.org/Graphics/SVG/Test/20021112/htmlframe/full-interact-cursor-01-b
.html in the ASV 6 Preview release. At first I thought that something was wrong
with ASV. As it turns out, ASV did the right thing. However, the text in each
box (e.g. "crosshair", etc.) was causing the cursor to show a 'text' selector
instead of the appropriate cursor. After looking at the SVG, I had a suggestion
for a modification to the example which simply adds pointer-events="none" to
each text element. I've attached the modified source below for the WG's
consideration.

When I mentioned this to Dean at SVG Open, it lead to another suggestion. Has
the working group considered getting the developer community to help develop and
refine the tests as well as having them validate implementations?  I imagine
that it could save the working group a lot of time. Perhaps this could be done
via sourceforge or some similar mechanism.

Respectfully,

Michael Bierman


Resume: http://www.thebiermans.net
Founder: http://www.adobealumni.com
SVG Blog: http://linguagrafica.blogspot.com/
SVG Evangelist: http://groups.yahoo.com/group/svg-Evangelist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
<!--======================================================================-->
<!--=  Copyright 2002 World Wide Web Consortium, (Massachusetts          =-->
<!--=  Institute of Technology, Institut National de Recherche en        =-->
<!--=  Informatique et en Automatique, Keio University). All Rights      =-->
<!--=  Reserved. See http://www.w3.org/Consortium/Legal/.                =-->
<!--======================================================================-->
<!-- ===================================================================== -->
<!-- interact-cursor-01-b.svg                                            -->
<!-- Author : Chris Lilley,  02-Aug-2000                                   -->
<!-- Revised for 1.1 : Lee Klosterman,  31-January-2002                      -->
<!--======================================================================-->
<svg version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%"
height="100%" viewBox="0 0 480 360">
 <title id="test-title">interact-cursor-01-f</title>
 <desc id="test-desc">
        Test that viewer has the basic capability to handle the cursor
        property and cursor element
          </desc>
 <!--======================================================================-->
 <!--Content of Test Case follows...                  =====================-->
 <!--======================================================================-->
 <g id="test-body-content">
  <defs>
   <cursor id="magglass" xlink:href="../images/magnify.png" x="10" y="11"/>
  </defs>
  <text x="240" y="25" text-anchor="middle" font-size="26">Text Cursor
           <a xlink:href="http://www.w3.org/TR/SVG/interact#Cursors" fill="blue"
xlink:show="new">Pointer Cursor</a>
  </text>
  <!-- use this text to check the native 'text' and 'pointer' cursor -->
  <rect x="120" y="40" width="240" height="236" stroke="#666" stroke-width="3"
fill="none"/>
  <!--
====================================================================== -->
  <!-- Predefined keyword values for cursors
           ===================== -->
  <!--
====================================================================== -->
  <g class="button">
   <g>
    <rect stroke="none" fill="#666" x="148" y="70" width="80" height="32"
cursor="crosshair"/>
    <text stroke="none" fill="#FFF" font-family="Geneva, Arial, Helvetica,
sans-serif" font-weight="bold" font-size="16" x="154" y="90"
pointer-events="none">crosshair</text>
   </g>
   <g>
    <rect stroke="none" fill="#666" x="148" y="118" width="80" height="32"
cursor="default"/>
    <text stroke="none" fill="#FFF" font-family="Geneva, Arial, Helvetica,
sans-serif" font-weight="bold" font-size="16" x="154" y="138"
pointer-events="none">default</text>
   </g>
   <g>
    <rect stroke="none" fill="#666" x="148" y="166" width="80" height="32"
cursor="pointer"/>
    <text stroke="none" fill="#FFF" font-family="Geneva, Arial, Helvetica,
sans-serif" font-weight="bold" font-size="16" x="154" y="186"
pointer-events="none">pointer</text>
   </g>
   <g>
    <rect stroke="none" fill="#666" x="148" y="214" width="80" height="32"
cursor="move"/>
    <text stroke="none" fill="#FFF" font-family="Geneva, Arial, Helvetica,
sans-serif" font-weight="bold" font-size="16" x="154" y="235"
pointer-events="none">move</text>
   </g>
   <g>
    <rect stroke="none" fill="#666" x="252" y="70" width="80" height="32"
cursor="text"/>
    <text stroke="none" fill="#FFF" font-family="Geneva, Arial, Helvetica,
sans-serif" font-weight="bold" font-size="16" x="258" y="90"
pointer-events="none">
    text</text>
   </g>
   <g>
    <rect stroke="none" fill="#666" x="252" y="118" width="80" height="32"
cursor="wait"/>
    <text stroke="none" fill="#FFF" font-family="Geneva, Arial, Helvetica,
sans-serif" font-weight="bold" font-size="16" x="258" y="138"
pointer-events="none">wait</text>
   </g>
   <g>
    <rect stroke="none" fill="#666" x="252" y="166" width="80" height="32"
cursor="help"/>
    <text stroke="none" fill="#FFF" font-family="Geneva, Arial, Helvetica,
sans-serif" font-weight="bold" font-size="16" x="258" y="186"
pointer-events="none">help</text>
   </g>
   <g>
    <rect stroke="none" fill="#666" x="252" y="214" width="80" height="32"
cursor="url(#magglass),default"/>
    <text stroke="none" fill="#FFF" font-family="Geneva, Arial, Helvetica,
sans-serif" font-weight="bold" font-size="16" x="258" y="235"
pointer-events="none">&lt;url&gt;</text>
   </g>
  </g>
  <g stroke="black" stroke-width="1" fill="#900">
   <polygon points="116,36 116,68 148,36" cursor="nw-resize"/>
   <polygon points="364,36 364,68 332,36" cursor="ne-resize"/>
   <polygon points="364,280 332,280 364,248" cursor="se-resize"/>
   <polygon points="116,280 148,280 116,248" cursor="sw-resize"/>
   <polygon points="340,134 340,182 364,158" cursor="e-resize"/>
   <polygon points="116,158 140,134 140,182" cursor="w-resize"/>
   <polygon points="240,36 264,63.3 214,63.3" cursor="n-resize"/>
   <polygon points="240,280 264,252.7 214,252.7" cursor="s-resize"/>
  </g>
  <!-- link to check consistency of 'pointer' cursor -->
  <!-- target for hotspot test -->
  <g id="target" stroke-width="1" stroke="black">
   <!-- make a region with a url cursor -->
   <circle cx="390" cy="315" r="24" stroke="none" fill="none"
cursor="url(#magglass),default"/>
   <!-- make a target to test the hotspot -->
   <circle cx="390" cy="315" r="16" stroke="none" fill="#FFC"/>
   <polyline points="390,295 390,335"/>
   <polyline points="370,315 410,315"/>
   <circle cx="390" cy="315" r="6" stroke="none" fill="#FFF"/>
   <!-- make the hotspot, taking care the cursor stays the same -->
   <a fill="blue" xlink:href="http://www.w3.org/Icons/w3c_home"
cursor="inherit">
    <circle cx="390" cy="315" r="2" stroke="none" fill="#000"/>
   </a>
  </g>
 </g>
 <text id="revision" x="10" y="340" font-size="40" stroke="none"
fill="black">$Revision: 1.7 $</text>
 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none"
stroke="#000000"/>
</svg>
Received on Wednesday, 23 July 2003 03:00:31 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:25 GMT