Re: Proposal: External generated content should be stylable

I see. The suggested solution sounds good to me.

Plus one ;)

Cheers,
Axel


-----------------
"Tab Atkins Jr."  schrieb im Newsbeitrag 
news:CAAWBYDA=1RML7_9LhNOawoGgLWc9E-6z19R1S89jpxyW=Cqr=g@mail.gmail.com...

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);".

~TJ

Received on Wednesday, 8 May 2013 17:24:20 UTC