W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2012

[whatwg] Magical alignment and moving anchor targets

From: Matt Falkenhagen <falken@chromium.org>
Date: Tue, 11 Dec 2012 10:45:14 -0800
Message-ID: <CAJ_xCikBe4zXuB9J8jwa0oLbBgLk1RiQdH_uPVpNd_X0j5j1aQ@mail.gmail.com>
To: whatwg@lists.whatwg.org
The spec seems unclear on whether a magically aligned element[1] should
follow its anchor when its anchor moves, e.g., by dynamic style changes or
something like CSS animations.

I think we want the element to follow the anchor. If someone does something
like:

dialog.show(anchor)
anchor.style.top = ...

They'd probably expect dialog to end up where anchor is, rather than where
it was when show() was called.

Relatedly, it's not clear what happens if anchor is display: none or is not
in the document when show() is called, but later has a rendered box and is
in the document. And the reverse: if it is in the document when show() is
called and later is removed.

[1]
http://www.whatwg.org/specs/web-apps/current-work/multipage/commands.html#magically-aligned
Received on Tuesday, 11 December 2012 18:46:05 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:50 UTC