W3C home > Mailing lists > Public > www-style@w3.org > October 2012

position: pointer

From: Jussi Kalliokoski <jussi.kalliokoski@gmail.com>
Date: Mon, 8 Oct 2012 20:08:04 +0300
Message-ID: <CAJhzemUo18-013V6W4gMDNcMQObHYSFTxmUyX30fdcrSP8uB_g@mail.gmail.com>
To: www-style@w3.org
Hi everyone,

I wanted to discuss the possibility of adding a new `position` type called
`pointer`. I came up with the idea as I was thinking about how limited
`title` attribute tooltips are, which made me check out the JS libraries
for the purpose, which are crappy as well, and I think JS shouldn't be
needed for "simple" positioning of elements like this (there may be a few
cycles to save here as well). The idea is pretty simple, it works kinda
like absolute or fixed position (in that the element is floating), but the
given coordinates are relative to the main pointer position.

This would let you make tooltips in pure CSS and HTML (not to mention that
you could recreate those stars flying around the mouse from the 90s with
just CSS and HTML ;). I made a small demo [1] [2] to give a better picture
of what I mean. The actual demo uses a silly JS shim, and I think the
smoothness speaks for itself about how unsuitable JS is for this kind of

Looking forward to feedback!


[1] (code) https://gist.github.com/3853601
[2] (result) http://labs.avd.io/position-pointer/
Received on Monday, 8 October 2012 17:08:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:22 UTC