tor-browser

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

select-1-line-height.html (1102B)


      1 <!DOCTYPE HTML>
      2 <!--
      3     Any copyright is dedicated to the Public Domain.
      4     http://creativecommons.org/publicdomain/zero/1.0/
      5 -->
      6 <html><head>
      7  <meta charset="utf-8">
      8  <title>Test: Combobox ignores CSS 'line-height'</title>
      9  <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
     10  <link rel="match" href="select-1-line-height-ref.html">
     11  <link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#the-select-element-2">
     12  <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1501908">
     13  <style type="text/css">
     14 html,body {
     15  color:black; background-color:white; font:16px/1 monospace;
     16 }
     17 
     18 select { line-height:100px; }
     19 
     20  </style>
     21 </head>
     22 <body>
     23 
     24 <select><option>aaaaaaaaaa<option>bbbbbbbbbb</select>
     25 
     26 <script>
     27 document.body.offsetHeight;
     28 var cv = window.getComputedStyle(document.querySelector('select')).lineHeight;
     29 if (cv != "normal" && parseInt(cv) > 50) {
     30  document.body.appendChild(document.createTextNode(
     31    "FAIL: got computed line-height '" + cv + "', " +
     32    "expected 'normal' or a length <= 50px"));
     33 }</script>
     34 
     35 </body>
     36 </html>