W3C home > Mailing lists > Public > www-style@w3.org > August 2014

Re: [css-images][selectors][css21] ::before and ::after on replaced elements

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Thu, 21 Aug 2014 17:16:36 -0400
Message-ID: <53F661B4.9040005@mit.edu>
To: www-style@w3.org
On 8/21/14, 5:04 PM, Florian Rivoal wrote:
> https://bugzilla.mozilla.org/show_bug.cgi?id=169334 and to how all
> (modern) implementations behave, ::before and ::after don't work on
> replaced content, such as images, making the following code a no-op:

The thing is, ::before and ::after add _children_.  This is why they 
don't make much sense on replaced elements.

What you're trying to add is a _sibling_.

-Boris
Received on Thursday, 21 August 2014 21:17:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:45 UTC