Re: [css-position] Sticky positioning computations

On 2014-03-06 21:08, Viatcheslav Ostapenko wrote:
>> > I can certainly see use cases for that. Headers followed by paragraphs of text
>> > is one such scenario where an author might want to make the headers sticky.
> But what would be used as boundary that will push StickyBox out of
> scroller box during scroll. For example, when next paragraphs with
> another header are coming to the top of scroller box?
> 

Right, multiple sections with headers is not really a good example for
ContainingBox == ScrollerBox.

In that situation, one would generally want a structure like

<section>
  <h2></h2>
  <p></p>
</section>

so that the headers scroll away when you reach the end of a section.

Corey

Received on Thursday, 6 March 2014 20:25:48 UTC