W3C home > Mailing lists > Public > www-style@w3.org > May 2013

Re: Proposal: External generated content should be stylable

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 8 May 2013 10:13:59 -0700
Message-ID: <CAAWBYDA=1RML7_9LhNOawoGgLWc9E-6z19R1S89jpxyW=Cqr=g@mail.gmail.com>
To: Axel Dahmen <brille1@hotmail.com>
Cc: www-style list <www-style@w3.org>
On Wed, May 8, 2013 at 10:09 AM, Axel Dahmen <brille1@hotmail.com> wrote:
> The following:
> <style type="text/css">
>  .someElement:after
>  {
>     content: url("image.png");
>     height: 1em;
>  }
> </style>
> Doesn't resize the downloaded image.
> Hence, I'd like to suggest to provide a solution for styling generated
> content created by external resources, too.

This is a more specific problem than your wording suggests.  It's a
result of the fact that anything in 'content' is forced into being an
anonymous inline box.  What we want is the ability to say that the
pseudo-element becomes a replaced element, using the content at the
given url.  This has been suggested before: last suggestion was to
allow you to specify something like "content: replaced url(foo);".

Received on Wednesday, 8 May 2013 17:14:46 UTC

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