Re: CSS transition and 'visibility'

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 UTC