W3C home > Mailing lists > Public > www-style@w3.org > July 2013

Re: specifying position:sticky

From: Brad Kemper <brad.kemper@gmail.com>
Date: Sat, 13 Jul 2013 16:02:54 -0700
Message-Id: <8E6D938D-175C-47E1-B669-B2F8FB1694AF@gmail.com>
Cc: Corey Ford <cford@mozilla.com>, "www-style@w3.org" <www-style@w3.org>
To: Simon Fraser <smfr@me.com>
On Jul 13, 2013, at 2:56 PM, Simon Fraser <smfr@me.com> wrote:

> We deliberately avoided this behavior for sticky, because you get into having to decide when things overlap, which, if they have different X offsets, is not clear. We didní»t want to have to code up something as complex as float avoidance behavior.

You can't just do something simple, like looking at the bounding boxes of both, and see if any edges align or overlap, and if they do, then adjust the relative position of document-order-preceding sticky item, letting that other sticky item overlap anything other than sticky items that precede it??
Received on Saturday, 13 July 2013 23:03:24 UTC

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