<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>16180</bug_id>
          
          <creation_ts>2007-11-28 17:47:20 -0800</creation_ts>
          <short_desc>Stroke width on rectangle not equal on all sides</short_desc>
          <delta_ts>2007-12-15 01:34:26 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Roben (:aroben)">aroben</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>oliver</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62621</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2007-11-28 17:47:20 -0800</bug_when>
    <thetext>Setting a stroke-width on a rectangle results in a stroke that is not even on all sides of the rectangle.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62622</commentid>
    <comment_count>1</comment_count>
      <attachid>17585</attachid>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2007-11-28 17:48:50 -0800</bug_when>
    <thetext>Created attachment 17585
testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62623</commentid>
    <comment_count>2</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2007-11-28 17:55:17 -0800</bug_when>
    <thetext>Bug confirmed. It&apos;s a clipping problem though. If you pan around you can clearly see the stroke is set correctly - though it&apos;s partly clipped aways.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62625</commentid>
    <comment_count>3</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2007-11-28 18:05:29 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Bug confirmed. It&apos;s a clipping problem though. If you pan around you can
&gt; clearly see the stroke is set correctly - though it&apos;s partly clipped aways.
&gt; 

Eek I am too tired - was too quick. The rendering looks correct on Tiger!
So it must be a CG/windows specific bug - as you described it on IRC.

Sorry for the trouble.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62626</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2007-11-28 18:40:46 -0800</bug_when>
    <thetext>After talking with Nico more, it seems that there really is a bug here (in his opinion), which is that the clipping of the top/left sides of the stroke should not happen when padding is set on the &lt;svg&gt; element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62627</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2007-11-28 18:41:05 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; After talking with Nico more,

Niko, even.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62673</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-11-29 01:25:58 -0800</bug_when>
    <thetext>This behavior is 100% correct, IMO.  I&apos;m not sure if we should be respecting &quot;padding&quot; in an SVG stand-alone document however.

&lt;svg&gt; has an implicit clip:
http://www.w3.org/TR/SVG/masking.html#OverflowAndClipProperties

When an outermost SVG &apos;svg&apos; element is stand-alone or embedded inline within a parent XML grammar which does not use CSS layout [CSS2-LAYOUT] or XSL formatting [XSL], the &apos;overflow&apos; property on the outermost &apos;svg&apos; element is ignored for the purposes of visual rendering and the initial clipping path is set to the bounds of the initial viewport.

So the stroke for the rect is getting clipped off the top and left.  If the SVG were not width/height 100%, but rather only as large as the rect, the bottom and right would also have been clipped.

I suggest this is closed as INVALID.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64248</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-15 01:34:26 -0800</bug_when>
    <thetext>Opera agrees with our rendering.  Firefox does too, but ignores padding.  Closing as invalid.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>17585</attachid>
            <date>2007-11-28 17:48:50 -0800</date>
            <delta_ts>2007-11-28 17:48:50 -0800</delta_ts>
            <desc>testcase</desc>
            <filename>template.svg</filename>
            <type>image/svg+xml</type>
            <size>327</size>
            <attacher name="Adam Roben (:aroben)">aroben</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJ
QyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9T
VkcvMS4xL0RURC9zdmcxMS5kdGQiPgoKPHN2ZyBzdHlsZT0icGFkZGluZzogMjBweDsiIHZlcnNp
b249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCjxyZWN0IHdpZHRo
PSI1MTIiIGhlaWdodD0iNTEyIiBzdHlsZT0iZmlsbDogcmdiKDI1NSwyNTUsMjU1KTsgc3Ryb2tl
LXdpZHRoOiAxMDsgc3Ryb2tlOiByZ2IoMCwwLDApIi8+Cgo8L3N2Zz4K
</data>

          </attachment>
      

    </bug>

</bugzilla>