layout/reftests/bugs/447749-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/bugs/447749-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,24 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 + <head>
     1.7 +  <title>Bug 4477749</title>
     1.8 +  <style type="text/css">
     1.9 +   div.scroller { overflow: scroll; width: 100px; }
    1.10 +   span { border: 1px solid blue; }
    1.11 +  </style>
    1.12 +  <script type="text/javascript">
    1.13 +function testit()
    1.14 +{
    1.15 +  var inner=document.getElementById("testinner").childNodes[0];
    1.16 +  window.getSelection().collapse(inner, 0);
    1.17 +  document.getElementById("testmid").scrollLeft=-1000;
    1.18 +  document.getElementById("testouter").style.direction="ltr";
    1.19 +}
    1.20 +  </script>
    1.21 + </head>
    1.22 + <body onload="testit()">
    1.23 +  <div id="testouter" dir="rtl">
    1.24 +   <div id="testmid" class="scroller"><span id="testinner">TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText</span></div>
    1.25 +  </div>
    1.26 + </body>
    1.27 +</html>

mercurial