layout/reftests/position-sticky/inline-3.html
author Carsten "Tomcat" Book <cbook@mozilla.com>
Fri, 31 Oct 2014 14:23:10 +0100
changeset 239819 0c31008f237b1e89ee11db93b30c68f90017b175
parent 174470 920b595433d84855d785b0e14dc873de4be164ff
permissions -rw-r--r--
Merge mozilla-central to mozilla-inbound

<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
   - http://creativecommons.org/publicdomain/zero/1.0/ -->
<html>
  <head>
    <title>CSS Test: Sticky Positioning - inline with margins</title>
    <link rel="author" title="Corey Ford" href="mailto:corey@coreyford.name">
    <link rel="match" href="inline-3-ref.html">
    <meta name="assert" content="Sticky positioning on inline elements should keep the bounding box of all continuations' margin boxes contained">
    <link rel="stylesheet" type="text/css" href="ahem.css">
    <style>
      #scroll {
        overflow: hidden;
        height: 200px;
        font: 10px/1 Ahem;
      }
      #sticky {
        position: sticky;
        left: 20px;
        margin-right: 10px;
      }
      #contain {
        width: 100px;
      }
    </style>
  </head>
  <body>
    <div id="scroll">
      <div id="contain">
        test <span id="sticky">test<br>test</span>
      </div>
    </div>
  </body>
</html>