author Masayuki Nakano <>
Mon, 04 Aug 2014 14:28:56 +0900
changeset 220564 fca0bb35087e09322ae2ffb8c8de9645e7fdd762
parent 159771 bb399c38e3b684d56ad595f9ca1bbb59c0e09555
permissions -rw-r--r--
Bug 1046101 part.26 Rename NS_SVGZOOM_EVENT to eSVGZoomEventClass r=smaug

<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
   - -->
    <title>CSS Test: Sticky Positioning - percentage offsets</title>
    <link rel="author" title="Corey Ford" href="">
    <link rel="match" href="padding-1-ref.html">
    <meta name="assert" content="Percentage offsets should be resolved against the content box of the scrolling container">
      body {
        /* Make sure it works on the first pass of reflow */
        overflow: scroll;
      #scroll {
        width: 130px;
        height: 80px;
        overflow: scroll;
        border: 10px solid black;
        padding: 10px;
      #sticky {
        position: sticky;
        top: 50%;
        left: 50%;
        width: 10px;
        height: 10px;
        background-color: black;
    <div id="scroll">
      <div id="sticky">