tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_bug320799.html (2021B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=320799
      5 -->
      6 <head>
      7  <title>Test for Bug 320799</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     10 </head>
     11 <body>
     12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=320799">Mozilla Bug 320799</a>
     13 <p id="display">
     14  <select id="s" style="width: 100px; box-sizing: border-box; border: 0">
     15    <option>This is a test, it really is a test I tell you</option>
     16  </select>
     17  <select id="s2">
     18    <option>x</option>
     19    <option>x</option>
     20    <option>x</option>
     21    <option>x</option>
     22    <option>x</option>
     23    <option>x</option>
     24    <option>x</option>
     25    <option>x</option>
     26    <option>x</option>
     27    <option>x</option>
     28    <option>x</option>
     29    <option>x</option>
     30    <option>x</option>
     31    <option>x</option>
     32    <option>x</option>
     33    <option>x</option>
     34    <option>x</option>
     35    <option>x</option>
     36    <option>x</option>
     37    <option>x</option>
     38    <option>x</option>
     39    <option>x</option>
     40    <option>x</option>
     41    <option>x</option>
     42    <option>x</option>
     43    <option>x</option>
     44    <option>x</option>
     45    <option>x</option>
     46    <option>x</option>
     47    <option>x</option>
     48    <option>x</option>
     49    <option>x</option>
     50    <option>x</option>
     51  </select>
     52  <select id="s3">
     53    <option>x</option>
     54  </select>
     55  <select id="s4" style="width: 100px; box-sizing: border-box; border: 0; margin: 10px">
     56    <option>This is a test, it really is a test I tell you</option>
     57  </select>
     58 </p>
     59 <div id="content" style="display: none">
     60  
     61 </div>
     62 <pre id="test">
     63 <script type="application/javascript">
     64 
     65 /** Test for Bug 320799 */
     66 is($("s").scrollWidth, 100, "Scroll width should not include dropdown contents");
     67 is($("s2").clientWidth, $("s3").clientWidth,
     68   "Client width should not depend on the dropdown's vertical scrollbar");
     69 
     70 is($("s4").scrollWidth, 100, "Scroll width should not include dropdown contents");
     71 </script>
     72 </pre>
     73 </body>
     74 </html>