intersection/enclosure checking

Should intersection/enclosure testing return true when the object being
tested is exactly on the border of the reference rectangle?  Consider
this document:

  <svg xmlns="http://www.w3.org/2000/svg">
    <line id="a" x1="0" y1="0" x2="10" y2="0"/>
    <script>
      var line = document.getElementById('a');
      var svg = line.parentNode;
      var r = svg.createSVGRect();
      r.x = 0; r.y = 0; r.width = 10; r.height = 10;
      alert(svg.checkIntersection(line, r));
      alert(svg.checkEnclosure(line, r));
    </script>
  </svg>

What should it alert?  (Came up while reviewing struct-dom-18-f.svg.)

Thanks,

Cameron

-- 
Cameron McCormack ≝ http://mcc.id.au/

Received on Friday, 22 October 2010 02:56:20 UTC