Re: What exactly is the replacement for getDefaultComputedStyle?

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