Bug 304355 - "content" CSS property is applied to all elements but should only be applied to :after and :before
Summary: "content" CSS property is applied to all elements but should only be applied ...
Status: RESOLVED NOT A BUG
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: 4.8.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-31 20:35 UTC by Rolf Eike Beer
Modified: 2012-08-01 05:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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