W3C home > Mailing lists > Public > www-style@w3.org > March 2009

Re: CSS transition and 'visibility'

From: David Hyatt <hyatt@apple.com>
Date: Tue, 17 Mar 2009 12:19:06 -0500
Cc: www-style <www-style@w3.org>
Message-id: <03287411-69B2-40C0-9AC6-146F76D4A7FD@apple.com>
To: Simon Pieters <simonp@opera.com>
On Mar 17, 2009, at 9:06 AM, Simon Pieters wrote:

> In WebKit, given the following:
>
>  div { -webkit-transition:visibility 1s }  div:hover  
> { visibility:hidden }
>
> ...when hovering the div it will wait 1s then switch to hidden. When  
> removing hover it will instantly switch to visible.
>
> The spec seems to require the exact opposite if I'm reading it  
> correctly:
>
>  visibility: interpolated via a discrete step. The interpolation  
> happens
>  in real number space between 0 and 1, where 1 is "visible" and all
>  other values are "hidden".
>   -- http://webkit.org/specs/CSSVisualEffects/CSSTransitions.html
>
> What WebKit implements seems like the more useful behavior, in my  
> opinion. Is the spec wrong?
>

Yes in my opinion the spec is wrong.  I implemented the exact opposite  
of the spec... all non-zero values are visible and only the value of  
zero is hidden.

dave
(hyatt@apple.com)
Received on Tuesday, 17 March 2009 17:19:54 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:17 GMT