Bug 13200

Summary: Webkit doesn’t honour specificities
Product: WebKit Reporter: David Latapie <david>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal    
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.4   
URL: http://blog.empyree.org/post/2439
Attachments:
Description Flags
Specificities none

Description David Latapie 2007-03-27 01:30:57 PDT
I was sure I already entered it, but I can’t find it right now.

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: http://blog.empyree.org/post/2837 and in English: http://blog.empyree.org/post/3122

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 checked with Gecko).
Comment 1 Dave Hyatt 2007-03-27 01:34:03 PDT
You filed it already and it was marked a dup of yet another bug you filed.  Search for "content: inherit".

Comment 2 David Latapie 2007-03-27 01:35:26 PDT
Created attachment 13825 [details]
Specificities
Comment 3 David Latapie 2007-03-27 01:40:06 PDT
The title of the previous one mislead me. My original mistake. I should sleep before submitting. Thank you. I will reply on the previous bug.
Comment 4 David Kilzer (:ddkilzer) 2007-03-27 04:45:29 PDT
Reopening to mark as duplicate.

Comment 5 David Kilzer (:ddkilzer) 2007-03-27 04:46:02 PDT

*** This bug has been marked as a duplicate of 13097 ***