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

Re: [CSS3 Backgrounds and Borders Module] : 1 pixel corner color

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 23 Aug 2005 23:13:39 +0000 (UTC)
To: adelfino@gmail.com
Cc: www-style@w3.org
Message-ID: <Pine.LNX.4.62.0508232311530.5786@dhalsim.dreamhost.com>

On Tue, 23 Aug 2005 adelfino@gmail.com wrote:
> 
> I would like CSS3 Backgrounds and Borders Module to define what should 
> the user agent do when something like this:
> 
> div.a {
> 
> border-top: 1px solid blue;
> border-right: 1px solid blue;
> border-bottom: 1px solid red;
> border-left: 1px solid blue;
> 
> }
> 
> Because, what color should be the lower right corner? Blue or red?

Both (half and half). On platforms where "1px" maps to one device pixel, 
such as low-res monitors, the UA is allowed to approximate in a UA-defined 
manner. CSS does not attempt to specify how implementation should 
approximate the "perfect" rendering when taking into account device 
limitations. (For example, it also doesn't say what should happen if the 
device can't render "blue" and "red" as different colours.)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 23 August 2005 23:14:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:40 GMT