W3C home > Mailing lists > Public > www-style@w3.org > May 2014

Re: CSS Outline behaviour when border radius is set

From: Brad Kemper <brad.kemper@gmail.com>
Date: Fri, 23 May 2014 17:35:02 -0700
Cc: "www-style@w3.org" <www-style@w3.org>
Message-Id: <5DF79735-87D7-4C1B-849B-8BD21AEBA269@gmail.com>
To: "deepak.sa@samsung.com" <deepak.sa@samsung.com>


> On May 16, 2014, at 10:10 AM, Deepak Singla <deepak.sa@samsung.com> wrote:
> 
> Hi,
> 
> I was working on some outine properties. I came across a case where border-radius is set.
> 
> If we specify outine for that particular element, how should the outline behave?
> 
> Should outline always  follow border radius? If not, what does spec have to say about that?
> 
>  
> 
> Thank You & Regards
> 
> Deepak Singla
> 

I'd much prefer it to follow the curve, but I don't think it does so in any browsers. So I think it is left intentionally unspecified until an 'outline' itself is updated in some future spec. 

I sometimes end up using box-shadow instead for this reason, but box-shadow doesn't have the ability to offset the way outline does. 
Received on Saturday, 24 May 2014 00:35:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:27 UTC