<?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>73103</bug_id>
          
          <creation_ts>2011-11-24 17:12:29 -0800</creation_ts>
          <short_desc>[REGRESSION] r96393 : Two or more CSS sprites displayed using :after do not work in the same element</short_desc>
          <delta_ts>2022-07-12 15:35:30 -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>CSS</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="Mike Lawther">mikelawther</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>hyatt</cc>
    
    <cc>jbauman</cc>
    
    <cc>jryans</cc>
    
    <cc>koivisto</cc>
    
    <cc>phiw2</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>508919</commentid>
    <comment_count>0</comment_count>
    <who name="Mike Lawther">mikelawther</who>
    <bug_when>2011-11-24 17:12:29 -0800</bug_when>
    <thetext>As reported in http://code.google.com/p/chromium/issues/detail?id=104991:

All CSS sprites using :after in the same element use the first sprite.

Repro:
-----
&lt;style&gt;
a[href=&quot;/oregon&quot;]:after, a[href=&quot;/arkansas&quot;]:after, a[href=&quot;/sanjosestate&quot;]:after {
    width: 27px;
    height: 20px;
    display: inline-block;
    background-repeat: no-repeat;
    background-image: url(http://thumbs.reddit.com/t5_2qm9d_3.png);
    background-position: -9999px -9999px;
    vertical-align: middle;
    margin-right: -3px
    }

a[href=&quot;/oregon&quot;]:after {
    content: &quot;&quot;;
    background-position: -140px -1400px
    }
a[href=&quot;/arkansas&quot;]:after {
    content: &quot;&quot;;
    background-position: 0 -350px
    }
a[href=&quot;/sanjosestate&quot;]:after {
    content: &quot;&quot;;
    background-position: -210px -70px
    }
&lt;style&gt;
&lt;p&gt;In Chrome 16+, if two or more sprites are in the same element, the first takes the place of all the following ones. For example, &lt;a href=&quot;/oregon&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;, &lt;a href=&quot;/arkansas&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;, and &lt;a href=&quot;/sanjosestate&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt; all appear as Oregon to me.&lt;/p&gt;
-----

Clicky here: http://jsfiddle.net/B3aZz/3/

Browsers tested (MacOS 10.6):
WebKit r96392: OK
WebKit r96393: BAD
WebKit Nightly r101141: BAD
Firefox 8.0: OK</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>508926</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Wittenbergh">phiw2</who>
    <bug_when>2011-11-24 19:10:47 -0800</bug_when>
    <thetext>That sounds fairly similar to bug 71621</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>509177</commentid>
    <comment_count>2</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2011-11-25 08:19:18 -0800</bug_when>
    <thetext>Sounds like style sharing rules need some tightening for :before and :after.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>613165</commentid>
    <comment_count>3</comment_count>
    <who name="John Bauman">jbauman</who>
    <bug_when>2012-04-30 18:51:06 -0700</bug_when>
    <thetext>*** Bug 85168 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882691</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-12 15:35:30 -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>
      
      

    </bug>

</bugzilla>