<?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>74851</bug_id>
          
          <creation_ts>2011-12-19 03:47:13 -0800</creation_ts>
          <short_desc>[SVG] Pattern placement issues</short_desc>
          <delta_ts>2022-07-15 15:02:16 -0700</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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</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="Branimir Lambov">blambov</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>jason.davies</cc>
    
    <cc>pdr</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>523821</commentid>
    <comment_count>0</comment_count>
      <attachid>119843</attachid>
    <who name="Branimir Lambov">blambov</who>
    <bug_when>2011-12-19 03:47:13 -0800</bug_when>
    <thetext>Created attachment 119843
Testcase

This tests some pattern placement oddities caused by rounding.

The chessboard fill should end AT a field boundary, no cropped parts of a square
should be visible at any side of the pattern. The square boundaries should not
be affected by zooming.

The top square should be a one-pixel stroke with no bleed of red or green into 
the adjacent pixels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>523826</commentid>
    <comment_count>1</comment_count>
    <who name="Branimir Lambov">blambov</who>
    <bug_when>2011-12-19 03:56:09 -0800</bug_when>
    <thetext>Firefox 8 and Opera 11.60 both display the pattern properly. Opera does bleed green in the rendering of the top square, Firefox does not have that problem.

The issue is caused by the rounding done in SVGImageBufferTools::createImageBuffer and lack of correction for the location of the buffer rectangle. The same type of problem appears in bug 73643, but patterns require a different treatment to avoid bleeding pixels under the pattern.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>637462</commentid>
    <comment_count>2</comment_count>
    <who name="Jason Davies">jason.davies</who>
    <bug_when>2012-05-30 11:22:15 -0700</bug_when>
    <thetext>Confirmed in Safari 5.1.7.

See also:
- https://code.google.com/p/chromium/issues/detail?id=130326
- https://bugzilla.mozilla.org/show_bug.cgi?id=535185</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884266</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-15 15:02:16 -0700</bug_when>
    <thetext>Safari, Chrome, and Firefox all agree on rendering for this test case. I don&apos;t believe there is any remaining compatibility issue.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>119843</attachid>
            <date>2011-12-19 03:47:13 -0800</date>
            <delta_ts>2011-12-19 03:47:13 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>pattern-placement-issue.svg</filename>
            <type>image/svg+xml</type>
            <size>2280</size>
            <attacher name="Branimir Lambov">blambov</attacher>
            
              <data encoding="base64">PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRw
Oi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KCjwhLS0gVGhpcyB0ZXN0cyBzb21lIHBhdHRlcm4g
cGxhY2VtZW50IG9kZGl0aWVzIGNhdXNlZCBieSByb3VuZGluZy4KClRoZSBjaGVzc2JvYXJkIGZp
bGwgc2hvdWxkIGVuZCBBV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