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

Re: [css3-fonts][cssom] proposal for revised definition of CSSFontFaceRule

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 19 Sep 2012 16:16:28 +0200
Message-ID: <CAAWBYDD+n1xK=oRE=nc=Ai628UCt5yLnOR8J0FAEwkPFhqHtMw@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Glenn Adams <glenn@skynav.com>, Sebastian Zartner <sebastianzartner@gmail.com>, John Daggett <jdaggett@mozilla.com>, www-style list <www-style@w3.org>
On Wed, Sep 19, 2012 at 3:29 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 9/19/12 9:16 AM, Glenn Adams wrote:
>> sorry, i meant to remove item(index); but this brings up the question of
>> whether enumeration of properties, e.g., via "for (propertyName in
>> rule.descriptors)" is sufficient or not
> What use cases are we trying to support?
> "for .. in" enumeration will enumerate all sorts of stuff in addition to the
> descriptor names...

You can use hasOwnProperty to fix that.  for-of loops fix it for you
automatically, and they've been approved for Harmony for some time.

So, yes, I think enumeration of properties is sufficient, unless we
can establish any good use-cases for something more complicated.

Received on Wednesday, 19 September 2012 14:17:19 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:04 UTC