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

Re: [cssom] Supporting JS properties whose names are CSS property names on CSSDeclaration objects

From: L. David Baron <dbaron@dbaron.org>
Date: Wed, 15 Feb 2012 16:25:19 -0800
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, Glenn Adams <glenn@skynav.com>, www-style list <www-style@w3.org>
Message-ID: <20120216002519.GA25651@pickering.dbaron.org>
On Wednesday 2012-02-15 15:41 -0800, Tab Atkins Jr. wrote:
> On Wed, Feb 15, 2012 at 3:03 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> > On 2/15/12 6:00 PM, Tab Atkins Jr. wrote:
> >> The appropriate algorithm is already defines in HTML, and can be
> >> copied for the CSSOM (it's used to convert between data-* attributes
> >> and properties on the dataset object).
> >
> > Except for the float/cssFloat thing, right?
> Yup.  (And as far as I can tell, that's the only exception, right?)

Yes, based on what Gecko implements.  (Though I didn't check that
the dash-to-case conversion was correct; I just removed all the
dashes and lowercased everything, and then float/cssFloat was the
only case where there was a difference between what's on
CSS2Properties and the name of the CSS property.)

(I think there are some similar things in the HTML DOM somewhere,


𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                           http://www.mozilla.org/   𝄂
Received on Thursday, 16 February 2012 00:25:47 UTC

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