Bug 304355

Summary: "content" CSS property is applied to all elements but should only be applied to :after and :before
Product: [Applications] konqueror Reporter: Rolf Eike Beer <kde>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 4.8.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Rolf Eike Beer 2012-07-31 20:35:18 UTC
http://www.w3.org/TR/CSS21/generate.html#content

Computed value:    On elements, always computes to 'normal'. On :before and :after, if 'normal' is specified, computes to 'none'. Otherwise, for URI values, the absolute URI; for attr() values, the resulting string; for other keywords, as specified.

But if you add some stylesheet like

a {content: ""}
p {content:none}

This is applied to the elements, i.e. they are rendered empty (modulo some other bugs). Tested with Opera, Firefox, and Chromium: Opera has same behavior as KHTML, the other 2 follow the spec.
Comment 1 Rolf Eike Beer 2012-08-01 05:52:57 UTC
CSS3 says all fine: http://www.w3.org/TR/css3-content/#inserting3