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

Re: [cssom-view] getBoundingClientRect() when the first rectangle is empty

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 5 May 2016 21:29:13 -0700
Message-ID: <CAAWBYDBtgq1EYvtRaN3gEdyYEcFnngrgu+9dYwORW2gyiJgb4Q@mail.gmail.com>
To: "Myles C. Maxfield" <mmaxfield@apple.com>
Cc: Koji Ishii <kojiishi@gmail.com>, "www-style@w3.org" <www-style@w3.org>
[please don't top-post https://wiki.csswg.org/tools/www-style]

On Thu, May 5, 2016 at 10:28 AM, Myles C. Maxfield <mmaxfield@apple.com> wrote:
> The spec has rather peculiar wording around this, as if it is making special
> affordances to make sure the first rectangle is always in the return value.
> Do we know why the current version is written this way?

It's probably an attempt to be clever/compact and ensure that you
don't hit a degenerate case (no rectangles left).

Received on Friday, 6 May 2016 06:13:11 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:59 UTC