W3C home > Mailing lists > Public > www-style@w3.org > July 2015

Re: ClientRectList.item() usage is very low in Blink

From: Dirk Schulze <dschulze@adobe.com>
Date: Mon, 6 Jul 2015 10:01:42 +0000
To: Tab Atkins Jr. <jackalmage@gmail.com>
CC: Philip Jägenstedt <philipj@opera.com>, "public-fx@w3.org" <public-fx@w3.org>, www-style list <www-style@w3.org>
Message-ID: <AA2743CA-93F7-4950-83DF-5AF82B32C10A@adobe.com>
The issues is tracked here:

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26200


The bug report was not updated with the usage data of ClientRectList in Chrome stable. (Note: in Firefox ClientRectList was renamed to DOMRectList and that name made it into the spec.)

Philip, do you think it is save to assume that ClientRectList (aka DOMRectList) can be replaced by a WebIDL sequence? IIRC there were some reservations in WebKit.

Greetings,
Dirk

On Jul 2, 2015, at 12:24 AM, Tab Atkins Jr. <jackalmage@gmail.com<mailto:jackalmage@gmail.com>> wrote:

EXPLICITLY PINGING DIRK

On Wed, Jul 1, 2015 at 2:51 PM, Philip Jägenstedt <philipj@opera.com<mailto:philipj@opera.com>> wrote:
On Thu, May 28, 2015 at 12:02 AM, Tab Atkins Jr. <jackalmage@gmail.com<mailto:jackalmage@gmail.com>> wrote:
On Wed, May 27, 2015 at 6:21 AM, Philip Jägenstedt <philipj@opera.com<mailto:philipj@opera.com>> wrote:
http://dev.w3.org/fxtf/geometry/ says "The DOMRectList interface is
at-risk. The authors of this specification await feedback from
implementers if the item() function of DOMRectList is currently in use
on legacy interfaces. If there is no/not enough content to justify
DOMRectList, legacy interfaces must use sequences instead and
DOMRectList will be removed from this specification."

Chrome 43 reached the stable channel about a week ago, and it had a
use counter in Blink to answer this very question:
https://www.chromestatus.com/metrics/feature/timeline/popularity/694


Compare that to another use counter also in the same release:
https://www.chromestatus.com/metrics/feature/timeline/popularity/696


When usage rounds to zero as for ClientRectList.item(), it means that
<0.0001% of page loads are affected. This is no guarantee that
replacing ClientRectList with sequence<ClientRect> as the return value
of Element.getClientRects() and Range.getClientRects() would be safe,
but it's promising.

(Dirk Schulze suggested that I notify public-fx and www-style.)

Excellent news. Thanks, Philip!

Is this issue being tracked somehow, do I need to do something or can
I sit back and wait?

Philip

Received on Monday, 6 July 2015 10:02:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:18 UTC