tor-browser

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

test_carets_selection.html (1844B)


      1 <!-- This Source Code Form is subject to the terms of the Mozilla Public
      2   - License, v. 2.0. If a copy of the MPL was not distributed with this
      3   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
      4 
      5 <!DOCTYPE html>
      6 <html id="html">
      7  <head>
      8    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      9    <title>Marionette tests for AccessibleCaret in selection mode</title>
     10    <style>
     11    body {
     12      /* Clicking on a point outside of viewport will trigger
     13         marionette_driver.errors.MoveTargetOutOfBoundsException. Increase the
     14         margin to prevent that. */
     15      margin: 30px;
     16    }
     17    .block {
     18      width: 10em;
     19      height: 4em;
     20      word-wrap: break-word;
     21      overflow: auto;
     22    }
     23    </style>
     24  </head>
     25  <body>
     26    <div>
     27      <input id="input" value="ABC DEF GHI">
     28      <input id="input-padding" style="padding: 1em;" value="ABC DEF GHI">
     29 
     30      <!-- To successfully select 'B's when 'A' is selected, use sufficient
     31           spaces between 'A's and 'B's to avoid the second caret covers 'B's. -->
     32      <input size="16" id="input-size" value="AAAAAAAA          BBBBBBBB">
     33    </div>
     34    <br>
     35    <div>
     36      <textarea id="textarea" rows="4" cols="8">ABC DEF GHI JKL MNO PQR</textarea>
     37      <textarea id="textarea-disabled" rows="4" cols="8" disabled>ABC DEF GHI JKL MNO PQR</textarea>
     38      <textarea id="textarea-one-line" rows="4" cols="12">ABC DEF GHI</textarea>
     39    </div>
     40    <br>
     41    <div><textarea dir="rtl" id="textarea-rtl" rows="8" cols="8">موزيلا فيرفكس موزيلا فيرفكس</textarea></div>
     42    <br>
     43    <div class="block" contenteditable="true" id="contenteditable">ABC DEF GHI</div>
     44    <br>
     45    <div class="block" id="content">ABC DEF GHI</div>
     46    <br>
     47    <div style="user-select: none;" id="non-selectable">Non-selectable</div>
     48  </body>
     49 </html>