W3C home > Mailing lists > Public > www-style@w3.org > February 2012

Re: [css3-ui] Negative values in outline-offset?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 15 Feb 2012 13:45:07 -0800
Message-ID: <CAAWBYDBMXtkTyOrfaDJztgQcy8o30gRNZ7nDS8cgwaqxN63uBA@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: www-style@w3.org
On Wed, Feb 15, 2012 at 7:33 AM, fantasai <fantasai.lists@inkedblade.net> wrote:
> On 02/15/2012 03:02 AM, Kang-Hao (Kenny) Lu wrote:
>>
>> (An old thread about outline-offset being negative)
>>
>> (11/05/02 20:49), Boris Zbarsky wrote:
>>>
>>> No, it just means that some implementations may not support all
>>> negative values for some properties even though per spec they really
>>> should.
>>
>>
>> What should happen when the absolute value is bigger than half of the
>> smaller outer border edge than? Test case:
>>
>> data:text/html,<p style="outline: solid; outline-offset: -2em;">Test
>>
>> WebKit browsers draw no outline in this case and Firefox....  I can't
>> quite describe it... it's something like a normal outline without two
>> top corners.
>>
>> I suggest we either explicitly mark it undefined (this case is contrived
>> anyway) or spec WebKit's behavior.
>
>
> IMO the UA should floor it at the least offset it can support. It shouldn't
> *not* draw the outline.

Yes, our behavior sounds like a silly bug.  We can floor it instead.
That should be an easy thing to change.

~TJ
Received on Wednesday, 15 February 2012 21:45:55 GMT

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