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

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 UTC