2 <!-- Any copyright is dedicated to the Public Domain.
3 - http://creativecommons.org/publicdomain/zero/1.0/ -->
6 <title>CSS Test: Sticky Positioning - right, contained
</title>
7 <link rel=
"author" title=
"Corey Ford" href=
"mailto:cford@mozilla.com">
8 <link rel=
"match" href=
"right-3-ref.html">
9 <meta name=
"flags" content=
"dom">
10 <meta name=
"assert" content=
"Sticky-right with too much scrolling: should stay within the containing block">
16 border:
1px solid black;
20 display: inline-block;
29 background-color: gray;
30 /* This puts the sticky element's
"normal position" at
31 the right side of the containing block. */
39 background-color: black;
44 <div class=
"fill"></div
46 <div id=
"sticky"></div>
48 ><div class=
"fill"></div>
50 <script type=
"text/javascript">
51 document
.getElementById("scroll").scrollLeft
= 220;