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

CSS transition and 'visibility'

From: Simon Pieters <simonp@opera.com>
Date: Tue, 17 Mar 2009 15:06:23 +0100
To: www-style <www-style@w3.org>
Message-ID: <op.uqxv4xeoidj3kv@hp-a0a83fcd39d2>
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?

Simon Pieters
Opera Software
Received on Tuesday, 17 March 2009 14:07:08 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:25 UTC