<?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>71621</bug_id>
          
          <creation_ts>2011-11-05 19:58:09 -0700</creation_ts>
          <short_desc>[REGRESSION] generated content based on attribute selectors is incorrectly applied with inline elements</short_desc>
          <delta_ts>2022-07-12 16:35:52 -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>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>0</everconfirmed>
          <reporter name="Philippe Wittenbergh">phiw2</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>jens</cc>
    
    <cc>koivisto</cc>
    
    <cc>sixcorners</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>496773</commentid>
    <comment_count>0</comment_count>
      <attachid>113777</attachid>
    <who name="Philippe Wittenbergh">phiw2</who>
    <bug_when>2011-11-05 19:58:09 -0700</bug_when>
    <thetext>Created attachment 113777
test case

Tested on OS X 10.6.8

Given this rule set:
a[href$=&quot;.pdf&quot;]::after {
margin: 0 0 0 3px;
padding: 0 1px;
content: &apos;[PDF]&apos;;
}

The generated content is applied to ALL links, if the 1st link is a link to a PDF file. If the PDF link is not the 1st one in the block, then the generated content is not applied.

Inspecting the links shows that the generated content is applied correctly. An now for the most weird part - inspecting the link makes the GC being painted correctly…

STR:
1. view test case, notice that all links in parag. 1 and 2 have [PDF] appended (the second ones should not).
2. Inspect the second links - the Inspector reports the styling correctly (no GC), and suddenly the link has no [PDF] appended.


This is a regression from Safari 5.1.1 (works correcly), and goes back at least to r96897. Chrome dev channel (17.0.928.0 dev) exhibits the same issue (not unexpectedly) but Chrome release (15.0.874.106) works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>535567</commentid>
    <comment_count>1</comment_count>
    <who name="">sixcorners</who>
    <bug_when>2012-01-13 03:32:25 -0800</bug_when>
    <thetext>*** Bug 76178 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>536156</commentid>
    <comment_count>2</comment_count>
    <who name="">sixcorners</who>
    <bug_when>2012-01-14 03:12:54 -0800</bug_when>
    <thetext>Shouldn&apos;t this big have the letters CSS or something in it? I think that&apos;s why I wasn&apos;t able to find it when I made my bug report.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1882738</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-12 16:35:23 -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><long_desc isprivate="0" >
    <commentid>1882740</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-12 16:35:52 -0700</bug_when>
    <thetext>*** Bug 77681 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>113777</attachid>
            <date>2011-11-05 19:58:09 -0700</date>
            <delta_ts>2011-11-05 19:58:09 -0700</delta_ts>
            <desc>test case</desc>
            <filename>webkit-attr-t1.html</filename>
            <type>text/html</type>
            <size>1239</size>
            <attacher name="Philippe Wittenb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