W3C home > Mailing lists > Public > www-style@w3.org > June 2009

[css3-images] The image fallback syntax + new image types

From: Giovanni Campagna <scampa.giovanni@gmail.com>
Date: Wed, 10 Jun 2009 15:36:56 +0200
Message-ID: <65307430906100636g604bc012ud5d3f67974ad060d@mail.gmail.com>
To: www-style@w3.org
This draft has appeared late yesterday on the public cvs server and I
took a quick glance at it.
A few rapid comments:

- Is <image> intended to reference only images (ie, anything you could
put inside an <img>) or any kind of replaced content (ie anything you
could put inside an <embed>)?
More specifically, will "content" be extend with the <image> syntax?

- Why did you introduce the <url-token> type?
Wasn't it easier to use <string> | <url>, or just <url>? I guess
<url-token> will create a lot of tokenization problems, that we should
avoid in general, without introducing real benefits (you just skip
"url(" and ")" )

- Why the last part of image is preceded by a keyword?

In addition, I propose to add support for one color images. This would
be especially useful in background, if you can stack multiple
partially transparent colours, with some covering only the content,
some the padding area and some the whole border box. Also, now that
border-images can be wider than the box, using colour images is useful
to avoid hacks with common borders and negative margins.

Lastly, I propose to specify gradients, that WebKit currently
supports, or as an alternative, to provide references to SVG paint
servers.

Giovanni
Received on Wednesday, 10 June 2009 13:37:28 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:18 GMT