Bug 13186 - :before and :after on replaced elements awaiting definition
Summary: :before and :after on replaced elements awaiting definition
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P4 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-24 17:43 PDT by Nicholas Shanks
Modified: 2022-07-07 12:34 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Shanks 2007-03-24 17:43:13 PDT
Nothing is rendered when the following CSS is applied:

img:before, img:after { content: " foo! "; }

I would expect to get " foo! [image] foo! ".
Comment 1 Dave Hyatt 2007-03-24 17:50:21 PDT
It's not defined yet.

See the note in section 12.1 in CSS2.1.

"Note. This specification does not fully define the interaction of :before and :after with replaced elements (such as IMG in HTML). This will be defined in more detail in a future specification."

Can't implement the behavior until we know what should happen.
Comment 2 Robert Blaut 2008-02-20 03:32:18 PST
P5 is not used for WebKit bugs. [http://webkit.org/quality/bugpriorities.html]
Comment 3 Brent Fulgham 2022-07-07 12:34:19 PDT
The WG discussed this at length, and decided that this should not be supported. Closing as WONTFIX.

https://github.com/w3c/csswg-drafts/issues/625