W3C home > Mailing lists > Public > www-style@w3.org > May 2014

It's time for contextual positioning

From: Simon Ferndriger <ferndriger.business@gmail.com>
Date: Sat, 10 May 2014 09:22:57 +0000
Message-ID: <CAHSm5EMBiLbz3cKZyzRZZ3Vv_Dve9eKx04BARRAVuLJuuCRz+g@mail.gmail.com> (sfid-20140510_092307_672977_CDF7CCA9)
To: www-style@w3.org
I don't even know if there is a major website that doesn't use overlay
context menus.
Currently, the positioning requires very difficult calculations, in most
cases even JavaScript, to find out if the context menu should expand to the
top, bottom, left or right.

My suggestion would be to add a new positioning option:

> position:contextual;
> context:#elementID

This would create an absolute positioned overlay, exactly nearby the
element with the provided #elementID.
No need for calculations.

PS: This new positioning could also be used as an alternative title tag
(hover tip).

Kind Regards
Simon Ferndriger
Received on Tuesday, 13 May 2014 16:10:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:51:27 UTC