W3C home > Mailing lists > Public > www-style@w3.org > April 2005

Re: [css3-background] comments

From: Bert Bos <bert@w3.org>
Date: Wed, 13 Apr 2005 21:03:44 +0200
To: W3C CSS List <www-style@w3.org>
Message-Id: <200504132103.44626.bert@w3.org>

On Wednesday 13 April 2005 19:44, Anne van Kesteren wrote:
> Bert Bos wrote:

> If the CSS WG is going to require something it might be nice to
> require browsers to use the same colors for CSS and for images:
>   <http://hsivonen.iki.fi/png-gamma/>
> ... so at least they interoperate.

What can we require that we don't do already? CSS colors are in sRGB, 
PNG images can also be in sRGB (or have a gAMA chunk), so as long as 
both CSS and PNG are implemented correctly, colors should match, 
shouldn't they?

> However, I agree that it would be very nice to have for vector
> images.

I'm convinced we will see SVG (Tiny) appear soon. Opera, Konqueror and 
Mozilla are working on it and many mobile browsers have it already. 
(Although we will have to lobby them to support it consistently, i.e., 
not just with <OBJECT> in HTML, but also with 'content' and 
'background' in CSS.)

> As Photoshop doesn't generate vector graphics I doubt designers will
> use 'border-image' as browsers are not particularly good at scaling.

But even bitmap images can look good when scaled. Look at a bitmap image 
scaled by an SVG viewer. SVG requires support for bilinear resampling 
(or better). Most browsers just do nearest neighbor resampling.

Maybe we should apply SVG's 'image-rendering' property to all images, 
instead of only to those inside SVG.


As the browsers are implementing SVG anyway, they might just as well use 
the same image scaling functions for other images. B.t.w., browsers on 
the Mac already scale images properly.

  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos                               W3C/ERCIM
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France
Received on Wednesday, 13 April 2005 19:03:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:17 UTC