RESOLVED DUPLICATE of bug 13097 Bug 13191
Webkit doesn’t support content:inherit
https://bugs.webkit.org/show_bug.cgi?id=13191
Summary Webkit doesn’t support content:inherit
David Latapie
Reported 2007-03-25 19:09:15 PDT
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:" ("attr(title)")"} 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).
Attachments
Testcase (801 bytes, application/xhtml+xml)
2007-03-25 19:10 PDT, David Latapie
no flags
David Latapie
Comment 1 2007-03-25 19:10:08 PDT
Created attachment 13817 [details] Testcase
Dave Hyatt
Comment 2 2007-03-25 20:39:00 PDT
WebKit just ignores content:inherit right now, since it's kind of a crazy thing to right in CSS2.1 when it can only apply to generated content.
mitz
Comment 3 2007-03-25 22:52:44 PDT
Now looks like a duplicate of bug 13097.
Dave Hyatt
Comment 4 2007-03-25 23:10:38 PDT
*** This bug has been marked as a duplicate of 13097 ***
David Latapie
Comment 5 2007-03-27 01:42:44 PDT
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).
Dave Hyatt
Comment 6 2007-03-27 01:48:21 PDT
We ignore content:inherit completely. This is why it looked like a specificity issue (when it wasn't).
David Latapie
Comment 7 2007-03-27 02:24:50 PDT
(In reply to comment #6) > We ignore content:inherit completely. This is why it looked like a specificity > issue (when it wasn't). > 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="" 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:"", or it will break in Opera — plus, this is not the intended effect*/}
Note You need to log in before you can comment on or make changes to this bug.