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

Re: What exactly is the replacement for getDefaultComputedStyle?

From: Simon Pieters <simonp@opera.com>
Date: Thu, 04 Sep 2014 17:02:37 +0200
To: "www-style list" <www-style@w3.org>, "Boris Zbarsky" <bzbarsky@mit.edu>
Cc: "Mike Sherov" <mike.sherov@gmail.com>
Message-ID: <op.xln32nliidj3kv@simons-mbp>
On Thu, 04 Sep 2014 14:26:17 +0200, Mike Sherov <mike.sherov@gmail.com>  
wrote:

> IMO, putting back GetStyleUtils#defaultStyle seems best. This would also  
> help distinguish between elements that are border-box by default and  
> elements that are content-box by default, which happens when devs (e.g.)  
> use an opinionated framework like Bootstrap which does a global  
> border-box reset.
>
>
> I'm sure I can continue finding useful examples for various properties.

On Thu, 04 Sep 2014 16:43:28 +0200, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 9/4/14, 3:59 AM, Simon Pieters wrote:
>> OK. Should I put back GetStyleUtils#defaultStyle ? Or do we want
>> something more lightweight that only supports the 'display' property?
>
>  From an implementation perspective, it's not clear to me that just  
> doing 'display' is any more lightweight than just doing all properties...

OK. I've added defaultStyle again.

https://dvcs.w3.org/hg/csswg/rev/82b6f329d616

cheers
-- 
Simon Pieters
Opera Software
Received on Thursday, 4 September 2014 15:03:10 UTC

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