<?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>13191</bug_id>
          
          <creation_ts>2007-03-25 19:09:15 -0700</creation_ts>
          <short_desc>Webkit doesn’t support content:inherit</short_desc>
          <delta_ts>2007-03-27 02:24:50 -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>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>13097</dup_id>
          
          <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="David Latapie">david</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>17328</commentid>
    <comment_count>0</comment_count>
    <who name="David Latapie">david</who>
    <bug_when>2007-03-25 19:09:15 -0700</bug_when>
    <thetext>On CSS specifities:

* Here in English, but I don’t find it that clear: http://meyerweb.com/eric/css/link-specificity.html

* Here in French (I’ll try to translate it one day): http://blog.empyree.org/post/2837

The test case uses two styles (in that writing order):

/* specificity 0,0,2 */
	html table :before, html table :after {content:inherit}

/* specificity 0,0,1 */
	abbr:after          {content:&quot; (&quot;attr(title)&quot;)&quot;}

Even though it is the last one, the second one shall be overridden by the first, by virtue of specificities. This is the case with Opera (I did not check with Gecko).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17329</commentid>
    <comment_count>1</comment_count>
      <attachid>13817</attachid>
    <who name="David Latapie">david</who>
    <bug_when>2007-03-25 19:10:08 -0700</bug_when>
    <thetext>Created attachment 13817
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17330</commentid>
    <comment_count>2</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2007-03-25 20:39:00 -0700</bug_when>
    <thetext>WebKit just ignores content:inherit right now, since it&apos;s kind of a crazy thing to right in CSS2.1 when it can only apply to generated content.


</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17313</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2007-03-25 22:52:44 -0700</bug_when>
    <thetext>Now looks like a duplicate of bug 13097.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17312</commentid>
    <comment_count>4</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2007-03-25 23:10:38 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 13097 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17192</commentid>
    <comment_count>5</comment_count>
    <who name="David Latapie">david</who>
    <bug_when>2007-03-27 01:42:44 -0700</bug_when>
    <thetext>Shall I understand this is the same mechanism that governs inheritance and specificity? Even if this is the case, it appeared to me as two different applications of the same problem, and it would be worth checking the two of them, but you certainly know better (no irony in this sentence—you’re just better than me at developping a browser).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17175</commentid>
    <comment_count>6</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2007-03-27 01:48:21 -0700</bug_when>
    <thetext>We ignore content:inherit completely.  This is why it looked like a specificity issue (when it wasn&apos;t).
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17176</commentid>
    <comment_count>7</comment_count>
    <who name="David Latapie">david</who>
    <bug_when>2007-03-27 02:24:50 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; We ignore content:inherit completely.  This is why it looked like a specificity
&gt; issue (when it wasn&apos;t).
&gt; 

Thank you. Do you have an approximation on when you will start working on content:inherit? At least for compatibility reasons with Opera (and maybe even for standards reason, but I am not sure here), content=&quot;&quot; will have hideous side effects on Opera, contrary to content inherit

Example:
table :before, table :after       {content:inherit /* For space reaason, I avoid any generated content in a table. Do not use content:&quot;&quot;, or it will break in Opera — plus, this is not the intended effect*/}

</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>13817</attachid>
            <date>2007-03-25 19:10:08 -0700</date>
            <delta_ts>2007-03-25 19:10:08 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>specificites.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>801</size>
            <attacher name="David Latapie">david</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPD94bWwtc3R5bGVzaGVldCBo
cmVmPSJzY3JlZW4uY3NzIiB0eXBlPSJ0ZXh0L2NzcyIgbWVkaWE9InNjcmVlbiI/Pgo8IURPQ1RZ
UEUgaHRtbCBQVUJMSUMgIi0vL1czQy8vRFREIFhIVE1MIDEuMS8vRU4iICJodHRwOi8vd3d3Lncz
Lm9yZy9UUi94aHRtbDExL0RURC94aHRtbDExLmR0ZCI+CjxodG1sIHhtbG5zPSJodHRwOi8vd3d3
LnczLm9yZy8xOTk5L3hodG1sIiB4bWw6bGFuZz0iZW4iPgo8aGVhZD4KCTx0aXRsZT5LbmlnaHQg
b2YgdGhlIFdoaXRlIE1vdW50YWluPC90aXRsZT4KCTxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cglo
dG1sIHRhYmxlIDpiZWZvcmUsIGh0bWwgdGFibGUgOmFmdGVyIHtjb250ZW50OmluaGVyaXQgLyog
c3BlY2lmaWNpdHkgMCwwLDIgKi99CglhYmJyOmFmdGVyICAgICAgICAgIHtjb250ZW50OiIgKCJ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