editor/reftests/readonly-non-editable.html

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <!DOCTYPE html>
     2 <html>
     3   <head>
     4     <style>
     5       :-moz-read-only + span {
     6         display: none;
     7       }
     8       span {
     9         color: transparent; /* workaround for bug 617524 */
    10         outline: 1px solid green;
    11       }
    12     </style>
    13   </head>
    14   <body>
    15     <input><span>hide me</span>
    16     <input readonly><span>hide me</span>
    17     <input type=password><span>hide me</span>
    18     <input type=password readonly><span>hide me</span>
    19     <input type=email><span>hide me</span>
    20     <input type=email readonly><span>hide me</span>
    21     <textarea></textarea><span>hide me</span>
    22     <textarea readonly></textarea><span>hide me</span>
    23   </body>
    24 </html>

mercurial