[webkit-dev] New web-facing CSS feature: -webkit-cursor-visibility: auto-hide

Silvia Pfeiffer silviapf at chromium.org
Mon Mar 4 17:17:31 PST 2013

Is  -webkit-cursor-visibility just for video ? If so, I am personally very
much in favor of such a selector. It's a common feature of full-screen
video players, see e.g.

Here's a discussion by Chrome users:
http://productforums.google.com/forum/#!topic/chrome/Hd7AZRWejpk .

It would be nice to get this through the CSS group quickly and implement
without the prefix.


On Tue, Mar 5, 2013 at 11:37 AM, Jer Noble <jer.noble at apple.com> wrote:

> In an effort to improve the user-experience of watching videos in full
> screen mode, I have created a patch which adds a new CSS style attribute:
> -webkit-cursor-visibility. When set to "auto-hide", this rule would change
> the cursor type to "none" after a few seconds of inactivity. UAs could then
> add this rule to their UA full screen style sheets for full screened video
> elements, but this rule can be overridden by site authors to handle hiding
> the cursor (or not) themselves.  Sites which do not hide the cursor during
> playback in full screen mode (e.g. YouTube) would get this behavior for
> free, and sites which do (e.g. vimeo) can continue to explicitly hide the
> mouse cursor when hiding their custom controls.
> This new attribute is not currently hidden behind a feature flag.
> We are at the very initial stages of proposing this attribute to the
> CSSWG, but have already incorporated feedback from some of the WG members.
> Please take a look at the associated bug, if you're interested:
> <https://bugs.webkit.org/show_bug.cgi?id=107601> Default mouse cursor
> behavior should be auto-hide for full screen video with custom controls
> -Jer
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20130305/af8a0295/attachment.html>

More information about the webkit-dev mailing list