1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/forms/textarea/padding-scrollbar-placement.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,44 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 + <head> 1.7 + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 1.8 + <title>Padding and Scrollbar Placement Test</title> 1.9 + <style>input, textarea { border-radius:0; background:none; border:none; }</style> 1.10 + <style type="text/css"> 1.11 + #t { 1.12 + display: block; 1.13 + position: absolute; 1.14 + left: 50px; 1.15 + top: 50px; 1.16 + padding: 50px; 1.17 + width: 300px; 1.18 + height: 100px; 1.19 + border: 5px solid red; 1.20 + margin: 10px; 1.21 + overflow: scroll; 1.22 + font-family: verdana; 1.23 + resize: none; 1.24 + color: black; 1.25 + z-index: 0; /* force a stacking context */ 1.26 + } 1.27 + #cover { 1.28 + position: absolute; 1.29 + left: 400px; 1.30 + top: 50px; 1.31 + width: 100px; 1.32 + height: 300px; 1.33 + background: black; 1.34 + } 1.35 + </style> 1.36 + </head> 1.37 + <body> 1.38 + <script> 1.39 + var ss = []; 1.40 + for (var i = 0; i < 1000; ++i) { 1.41 + ss.push(i); 1.42 + } 1.43 + document.write("<textarea id='t'>" + ss.join(" ") + "</textarea>"); 1.44 + </script> 1.45 + <div id="cover"></div> 1.46 + </body> 1.47 +</html>