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

Re: [cssom] Proposing a getDefaultComputedStyle method

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 12 Oct 2012 12:42:41 -0700
Message-ID: <CAAWBYDBVy2g5zkxapM0PuUAR442YTwLs1u_19Jo1hqvw4esR+w@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style list <www-style@w3.org>
On Fri, Oct 12, 2012 at 12:30 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 10/12/12 3:21 PM, Tab Atkins Jr. wrote:
>> I'm slightly unsure of the use-case.  What does jQuery use this
>> information for?  Is it just for setting things back to their
>> pre-author state?
> There seem to be two uses at first glance:
> 1)  As a default value to set display to in some situations.
> 2)  To set display to "inline-block" on elements that are by default
>     display:inline but are having their height/width animated.

Okay.  #1 seems to be well answered by the 'default' value.

#2 can't easily use the 'default' value, but it seems like it would
also be easy to just maintain a list of tagnames that are
display:inline by default.

Received on Friday, 12 October 2012 19:43:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:22 UTC