<?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>7697</bug_id>
          
          <creation_ts>2006-03-10 03:38:18 -0800</creation_ts>
          <short_desc>background-repeat in &lt;a&gt; tag not honored using negative background positioning (was: A problem with tables and images at imdb.com)</short_desc>
          <delta_ts>2006-05-11 11:46:39 -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>Layout and Rendering</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>5399</dup_id>
          
          <bug_file_loc>http://imdb.com/nowplaying/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniele Metilli">daniele.metilli</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jonathanjohnsson</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35707</commentid>
    <comment_count>0</comment_count>
    <who name="Daniele Metilli">daniele.metilli</who>
    <bug_when>2006-03-10 03:38:18 -0800</bug_when>
    <thetext>The link is just for reference, see the reduction instead.

The center image renders incorrectly: there shouldn&apos;t be that yellow part inside the blue part.
The problem is related to the &quot;no-repeat&quot; in the &quot;background&quot; style attribute of the center image.

In Firefox it renders correctly if you don&apos;t remove the &quot;no-repeat&quot;.
In WebKit it always renders incorrectly. Somehow, WebKit is ignoring that &quot;no-repeat&quot;.

This bug could be related to 7691 since both have to do with &quot;background&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35708</commentid>
    <comment_count>1</comment_count>
      <attachid>6983</attachid>
    <who name="Daniele Metilli">daniele.metilli</who>
    <bug_when>2006-03-10 03:39:30 -0800</bug_when>
    <thetext>Created attachment 6983
Reduction

This is the best I could do. Probably it could be reduced more.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35709</commentid>
    <comment_count>2</comment_count>
    <who name="Daniele Metilli">daniele.metilli</who>
    <bug_when>2006-03-10 03:43:12 -0800</bug_when>
    <thetext>I forgot to say that this happens in the latest nightly build (13244) and also in the last stable version of Safari (the one included in Mac OS X 10.4.5). I don&apos;t know about the previous versions.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37595</commentid>
    <comment_count>3</comment_count>
    <who name="Daniele Metilli">daniele.metilli</who>
    <bug_when>2006-03-26 06:29:05 -0800</bug_when>
    <thetext>No one has confirmed this yet, so I&apos;ll explain the problem better:

1 - Go to http://imdb.com/nowplaying/
2 - Look at the yellow &quot;search IMDb&quot; on the upper left, just below the IMDb logo.
3 - Part of it goes over the blue image that says &quot;now playing&quot;.

This happens in the latest nightly (r13482). It doesn&apos;t happen in Firefox.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37602</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-03-26 09:08:41 -0800</bug_when>
    <thetext>I think that this could indeed benefit from further reduction, changing the keyword accordingly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40576</commentid>
    <comment_count>5</comment_count>
      <attachid>7990</attachid>
    <who name="Alex Taylor">darwin</who>
    <bug_when>2006-04-26 23:42:20 -0700</bug_when>
    <thetext>Created attachment 7990
Reduced test case

Reduced test case, appears to be related to negative positioning and no-repeat as well as a height on the element.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42014</commentid>
    <comment_count>6</comment_count>
    <who name="">jonathanjohnsson</who>
    <bug_when>2006-05-11 10:56:19 -0700</bug_when>
    <thetext>Nice reduction, Alex. I changed it a bit to make the problem more visible. The picture is now 80x80, and the pixel values have changed (maybe not better, but it&apos;s a nicer picture :) )

The problem seems to be that if the size of the &lt;a&gt; tag is the exact same, or smaller, than the picture size, *and* the positioning of the background image has a negative value, then the &quot;no-repeat&quot; value of the background isn&apos;t honored. 

The x and y directions are independent, i.e. if the above criteria only holds for the x direction, the &quot;no-repeat&quot; value will still be honored in the y direction.

I think picture with distinct, different colored, borders would make it easier to see exactly what happens when the positioning is changed.

Changing to P3 as this is just a cosmetic problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42015</commentid>
    <comment_count>7</comment_count>
      <attachid>8243</attachid>
    <who name="">jonathanjohnsson</who>
    <bug_when>2006-05-11 10:59:13 -0700</bug_when>
    <thetext>Created attachment 8243
Reduced test case no. 3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42027</commentid>
    <comment_count>8</comment_count>
    <who name="">jonathanjohnsson</who>
    <bug_when>2006-05-11 11:46:39 -0700</bug_when>
    <thetext>This is a duplicate of bug 5399.

*** This bug has been marked as a duplicate of 5399 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>6983</attachid>
            <date>2006-03-10 03:39:30 -0800</date>
            <delta_ts>2006-05-11 10:59:13 -0700</delta_ts>
            <desc>Reduction</desc>
            <filename>Tables.html</filename>
            <type>text/html</type>
            <size>802</size>
            <attacher name="Daniele Metilli">daniele.metilli</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5PgoKPHRhYmxlIHN0eWxlPSJ3aWR0aDogMTAwJTsKICAgICAgICAgICAgICBi
YWNrZ3JvdW5kOiB1cmwoaHR0cDovL2lhLmltZGIuY29tL21lZGlhL2ltZGIvMDEvSS81MS8yOS81
OS5naWYpOwogICAgICAgICAgICAgIGJvcmRlci1zcGFjaW5nOiAwcHgiPgogICA8dGQvPgogICA8
dGFibGUgY2xhc3M9c3VibmF2X21pZGRsZSBhbGlnbj1jZW50ZXIgc3R5bGU9Im1hcmdpbi1sZWZ0
OiBhdXRvO2hlaWdodDogMzNweDsiPgogICAgICA8dGQ+CiAgICAgICAgIDxhIHN0eWxlPSJwb3Np
dGlvbjogYWJzb2x1dGU7CiAgICAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kOiB1cmwoaHR0cDov
L2lhLmltZGIuY29tL21lZGlhL2ltZGIvMDEvSS8wMy8yOS81OS5naWYpIDBweCAtNnB4IG5vLXJl
cGVhdDsKICAgICAgICAgICAgICAgICAgIHdpZHRoOiA3N3B4OyBtYXJnaW46IC0xMHB4OyBoZWln
aHQ6IDMzcHg7Ij4KICAgICAgICAgPC9hPgogICAgICA8L3RkPgogICA8L3RhYmxlPgoKICAgPHRh
YmxlIHN0eWxlPSJiYWNrZ3JvdW5kOiB1cmwoaHR0cDovL2lhLmltZGIuY29tL21lZGlhL2ltZGIv
MDEvSS8zMi80OC85OS5qcGcpOwogICAgICAgICAgICAgICAgIGJvcmRlci1zcGFjaW5nOiAwOwog
ICAgICAgICAgICAgICAgIGNlbGxzcGFjaW5nPSIwIiBjZWxscGFkZGluZz0iMCI7PgogICAgICA8
dGQgc3R5bGU9IndpZHRoOiAxODI7IGhlaWdodDogNjRweCI+PC90ZD4KICAgICAgPHRkIHN0eWxl
PSJ3aWR0aDogMTAwJTsgaGVpZ2h0OiA2NHB4Ij48L3RkPgo8L3RhYmxlPgoKPC9ib2R5Pgo8L2h0
bWw+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>7990</attachid>
            <date>2006-04-26 23:42:20 -0700</date>
            <delta_ts>2006-05-11 10:59:13 -0700</delta_ts>
            <desc>Reduced test case</desc>
            <filename>testcase.html</filename>
            <type>text/html</type>
            <size>324</size>
            <attacher name="Alex Taylor">darwin</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5PgogICAgICAgIDxhIHN0eWxlPSIgcG9zaXRpb246YWJzb2x1dGU7CiAgICAg
ICAgICAgICAgICAgICBiYWNrZ3JvdW5kOiB1cmwoaHR0cDovL2lhLmltZGIuY29tL21lZGlhL2lt
ZGIvMDEvSS8wMy8yOS81OS5naWYpIDBweCAtNnB4IG5vLXJlcGVhdDsKICAgICAgICAgICAgICAg
ICAgIHdpZHRoOjc4cHg7IGhlaWdodDogMzNweDsiPgogICAgICAgIDwvYT4KCSAgICA8IS0tIEFs
dGVyaW5nIHRoZSBoZWlnaHQgb2YgdGhlIDxhPiBieSBhbnkgYW1vdW50IGVpdGhlciBkaXJlY3Rp
b24gY2Vhc2VzIHRoZSBidWcuIC0tPgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>8243</attachid>
            <date>2006-05-11 10:59:13 -0700</date>
            <delta_ts>2006-05-11 10:59:13 -0700</delta_ts>
            <desc>Reduced test case no. 3</desc>
            <filename>testcase_bug7697.html</filename>
            <type>text/html</type>
            <size>340</size>
            <attacher>jonathanjohnsson</attacher>
            
              <data encoding="base64">PGh0bWw+DQo8Ym9keT4KICAgICAgICA8YSBzdHlsZT0iIHBvc2l0aW9uOmFic29sdXRlOwogICAg
ICAgICAgICAgICAgICAgYmFja2dyb3VuZC1pbWFnZTogdXJsKGh0dHA6Ly9vcGVuZGFyd2luLm9y
Zy9pbWFnZXMvaGV4bGV5LTIucG5nKTsNCiAgICAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLXBv
c2l0aW9uOiAtNDBweCAtNDBweDsNCiAgICAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLXJlcGVh
dDogbm8tcmVwZWF0OwogICAgICAgICAgICAgICAgICAgd2lkdGg6ODBweDsgDQogICAgICAgICAg
ICAgICAgICAgaGVpZ2h0OiA4MHB4OyI+CiAgICAgICAgPC9hPg0KPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>