Re: [CSSOM] Revisiting transforms and getBoundingClientRect()

On Thu, Sep 19, 2013 at 9:04 PM, Robert O'Callahan <robert@ocallahan.org>wrote:

> On Fri, Sep 20, 2013 at 3:50 PM, Rik Cabanier <cabanier@gmail.com> wrote:
>
>> On Thu, Sep 19, 2013 at 8:30 PM, Robert O'Callahan <robert@ocallahan.org>wrote:
>>
>>> One question about the DOMRect constructor: Should we allow negative
>>> width/height? I think not. (And APIs should never create DOMRects with
>>> negative width/height.)
>>>
>>
>> Why should we not allow a negative height?
>>
>
> It doesn't make geometric sense. CSS and other APIs that support
> rectangles typically don't support negative width/height.
>

Canvas supports it. It's actually quite useful if you want to alter the
winding of the path.

Received on Friday, 20 September 2013 17:03:07 UTC