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

Re: when do transitions occur?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 18 Sep 2011 12:53:14 -0400
Message-ID: <4E7621FA.5020806@mit.edu>
To: www-style@w3.org
On 9/15/11 4:37 PM, Jennifer Yu wrote:
> Thanks for the responses Tab and David. I didn't realize that shorthands don't have a computed value since getComputedStyle seems to return a valid string for shorthands.

It really depends.  For this simple testcase:

   <!DOCTYPE html>
   <body style="background: fixed red;">
       alert(getComputedStyle(document.body, "").background);

both Gecko and WebKit alert the empty string.  Gecko does this for all 
shorthands, in fact; arguably 
http://www.w3.org/TR/DOM-Level-2-Style/css.html calls for that behavior.

Of course getComputedStyle also doesn't actually return computed values, 
so using it to reason about computed values is pretty pointless....

Received on Sunday, 18 September 2011 16:53:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:50:07 UTC