1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/position-sticky/inline-2.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,37 @@ 1.4 +<!DOCTYPE html> 1.5 +<!-- Any copyright is dedicated to the Public Domain. 1.6 + - http://creativecommons.org/publicdomain/zero/1.0/ --> 1.7 +<html class="reftest-wait"> 1.8 + <head> 1.9 + <title>CSS Test: Sticky Positioning - inline, dynamic changes</title> 1.10 + <link rel="author" title="Corey Ford" href="mailto:cford@mozilla.com"> 1.11 + <link rel="match" href="inline-2-ref.html"> 1.12 + <meta name="assert" content="Sticky positioning on inline elements should move all continuations when the offsets are changed"> 1.13 + <meta name="flags" content="dom"> 1.14 + <link rel="stylesheet" type="text/css" href="ahem.css"> 1.15 + <style> 1.16 + #scroll { 1.17 + overflow: hidden; 1.18 + height: 200px; 1.19 + font: 10px/1 Ahem; 1.20 + } 1.21 + #sticky { 1.22 + position: sticky; 1.23 + top: 20px; 1.24 + left: 20px; 1.25 + } 1.26 + </style> 1.27 + </head> 1.28 + <body> 1.29 + <div id="scroll"> 1.30 + hello <span id="sticky">there<br>everyone</span> 1.31 + </div> 1.32 + <script type="text/javascript"> 1.33 + document.addEventListener("MozReftestInvalidate", function() { 1.34 + document.getElementById("sticky").style.top = "30px"; 1.35 + document.getElementById("sticky").style.left = "30px"; 1.36 + document.documentElement.removeAttribute("class"); 1.37 + }, false); 1.38 + </script> 1.39 + </body> 1.40 +</html>