layout/reftests/forms/textarea/padding-scrollbar-placement-ref.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
michael@0 5 <title>Padding and Scrollbar Placement Test Reference</title>
michael@0 6 <style>input, textarea { border-radius:0; background:none; border:none; }</style>
michael@0 7 <style type="text/css">
michael@0 8 #t {
michael@0 9 display: block;
michael@0 10 position: absolute;
michael@0 11 left: 50px;
michael@0 12 top: 50px;
michael@0 13 padding: 50px;
michael@0 14 width: 300px;
michael@0 15 height: 100px;
michael@0 16 border: 5px solid red;
michael@0 17 margin: 10px;
michael@0 18 overflow: scroll;
michael@0 19 font-family: verdana;
michael@0 20 white-space: pre-wrap;
michael@0 21 z-index: 0; /* force a stacking context */
michael@0 22 }
michael@0 23 #cover {
michael@0 24 position: absolute;
michael@0 25 left: 400px;
michael@0 26 top: 50px;
michael@0 27 width: 100px;
michael@0 28 height: 300px;
michael@0 29 background: black;
michael@0 30 }
michael@0 31 #cover2 { /* corresponds to the bottom padding inside the textarea */
michael@0 32 position: absolute;
michael@0 33 left: 0px;
michael@0 34 bottom: 0px;
michael@0 35 width: 100%;
michael@0 36 height: 50px;
michael@0 37 background: white;
michael@0 38 }
michael@0 39 </style>
michael@0 40 </head>
michael@0 41 <body>
michael@0 42 <script>
michael@0 43 var ss = [];
michael@0 44 for (var i = 0; i < 1000; ++i) {
michael@0 45 ss.push(i);
michael@0 46 }
michael@0 47 document.write("<div id='t'><div id=cover2></div>" + ss.join(" ") + "</div>");
michael@0 48 </script>
michael@0 49 <div id="cover"></div>
michael@0 50 </body>
michael@0 51 </html>

mercurial