1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/text-overflow/xulscroll.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,94 @@ 1.4 +<!-- Any copyright is dedicated to the Public Domain. 1.5 + - http://creativecommons.org/publicdomain/zero/1.0/ --> 1.6 +<!DOCTYPE HTML> 1.7 +<html class="reftest-wait"><head> 1.8 + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 1.9 + <title>Testcase for bug 672944</title> 1.10 + <style type="text/css"> 1.11 +@font-face { 1.12 + font-family: DejaVuSansMono; 1.13 + src: url(../fonts/DejaVuSansMono.woff),url(DejaVuSansMono.woff); 1.14 +} 1.15 +html,body { 1.16 + color:black; background-color:white; font-size:16px; padding:0; margin:0; font-family:DejaVuSansMono; 1.17 +} 1.18 + 1.19 + .bacon { 1.20 + white-space: nowrap; 1.21 + text-overflow: ellipsis ellipsis; 1.22 + overflow: hidden; 1.23 + width: 30ch; 1.24 + display: -moz-box; 1.25 + background: lime; 1.26 + margin-bottom: 1em; 1.27 + } 1.28 + 1.29 + .auto { 1.30 + overflow-x: auto; 1.31 + padding-bottom: 2ch; 1.32 + width: 29.5ch; 1.33 + text-overflow: "" ""; 1.34 + } 1.35 + .scroll { 1.36 + overflow: auto; 1.37 + padding: 2ch; 1.38 + border: 3px solid black; 1.39 + text-overflow: "" ""; 1.40 + } 1.41 + .scroll2 { 1.42 + overflow: auto; 1.43 + padding: 3ch; 1.44 + text-overflow: "" ""; 1.45 + } 1.46 + .scroll3 { 1.47 + overflow: auto; 1.48 + padding: 2ch; 1.49 + text-indent: -3ch; 1.50 + text-overflow: "" ""; 1.51 + } 1.52 + .scroll4 { 1.53 + overflow: auto; 1.54 + padding: 2ch 0.2ch; 1.55 + text-overflow: "" ""; 1.56 + } 1.57 +span { background-color:white; } 1.58 + 1.59 +#block-hover { 1.60 + position:fixed; 1.61 + top:0;left:0;width:100%;height:100%; 1.62 +} 1.63 + </style> 1.64 + <script type="text/javascript"> 1.65 +function init() { 1.66 + // workaround bug 936936 1.67 + document.body.style.display="block"; 1.68 + 1.69 + document.getElementById('rtl_auto').scrollLeft=999999; 1.70 + 1.71 + document.documentElement.removeAttribute('class'); 1.72 +} 1.73 + </script> 1.74 +</head> 1.75 +<body onload="init();" style="display: inline;"> 1.76 + 1.77 +<div style="float:right;" dir="rtl"> 1.78 + <div class="bacon"><span>1Beef hamburger bacon tri-tip, jowl biltong tail ribeye ham</span></div><br> 1.79 + <div id="rtl_auto" class="bacon auto"><span>2Beef hamburger bacon tri-tipJOWLBILTONG tail ribeye ham</span></div><br> 1.80 + <div class="bacon scroll"><span>3Beef hamburger bacon tri-tipJOWLBILTONG tail ribeye ham</span></div><br> 1.81 + <div class="bacon scroll2"><span>4Beef hamburger bacon tri-tipJOWLBILTONG tail ribeye ham</span></div><br> 1.82 + <div class="bacon scroll3"><span>5Beef hamburger bacon tri-tipJOWLBILTONG tail ribeye ham</span></div><br> 1.83 + <div class="bacon scroll4"><span>6Beef hamburger bacon tri-tipJOWLBILTONG tail ribeye ham</span></div><br> 1.84 +</div> 1.85 + 1.86 +<div> 1.87 + <div class="bacon"><span>1Beef hamburger bacon tri-tip, jowl biltong tail ribeye ham</span></div><br> 1.88 + <div class="bacon auto"><span>2Beef hamburger bacon tri-tipJOWLBILTONG tail ribeye ham</span></div><br> 1.89 + <div class="bacon scroll"><span>3Beef hamburger bacon tri-tipJOWLBILTONG tail ribeye ham</span></div><br> 1.90 + <div class="bacon scroll2"><span>4Beef hamburger bacon tri-tipJOWLBILTONG tail ribeye ham</span></div><br> 1.91 + <div class="bacon scroll3"><span>5Beef hamburger bacon tri-tipJOWLBILTONG tail ribeye ham</span></div><br> 1.92 + <div class="bacon scroll4"><span>6Beef hamburger bacon tri-tipJOWLBILTONG tail ribeye ham</span></div><br> 1.93 +</div> 1.94 + 1.95 +<div id="block-hover"></div> 1.96 +</body> 1.97 +</html>