tor-browser

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

select-wrap-no-spill.optional.html (740B)


      1 <!DOCTYPE html>
      2 <html>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <body>
      6 <table>
      7 <tr><td id="target">
      8 <select style="width:80px; white-space:pre-wrap;">
      9 <option>ab option with a very long text that does not fit but should not spill</option>
     10 </select>
     11 <tr><td id="reference"><select style="width:80px;">
     12 <option>ab option with a very long text that does not fit but should not spill</option>
     13 </select>
     14 </table>
     15 <script>
     16 // crbug.com/924929
     17 test(() => {
     18  assert_equals(document.querySelector('#target').offsetHeight,
     19      document.querySelector('#reference').offsetHeight);
     20 }, 'Selected OPTION label with white-space:pre-wrap should not spill out.');
     21 </script>
     22 </body>
     23 </html>