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

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 UTC