Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
michael@0 | 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" |
michael@0 | 3 | "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
michael@0 | 4 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 5 | <head> |
michael@0 | 6 | <title>Testing controls that should match :enabled/:disabled</title> |
michael@0 | 7 | <style type="text/css"> |
michael@0 | 8 | input, textarea, button, *.hideme { display: none; } |
michael@0 | 9 | div { margin-bottom: 0.2em; } |
michael@0 | 10 | |
michael@0 | 11 | span, option, optgroup { color: lime; background-color: lime; } |
michael@0 | 12 | </style> |
michael@0 | 13 | </head> |
michael@0 | 14 | <body> |
michael@0 | 15 | <div> |
michael@0 | 16 | There should be no red in the following (note: form styling should be enabled). |
michael@0 | 17 | </div> |
michael@0 | 18 | |
michael@0 | 19 | <form method="get" action="."> |
michael@0 | 20 | <div> |
michael@0 | 21 | input: |
michael@0 | 22 | <input/> <span class="true">FAIL</span> |
michael@0 | 23 | <input disabled="disabled"/> <span class="false">FAIL</span> |
michael@0 | 24 | <input id="i1"/> <span class="false">FAIL</span> |
michael@0 | 25 | <input id="i2" disabled="disabled"/> <span class="true">FAIL</span> |
michael@0 | 26 | </div> |
michael@0 | 27 | |
michael@0 | 28 | <div> |
michael@0 | 29 | password: |
michael@0 | 30 | <input type="password"/> <span class="true">FAIL</span> |
michael@0 | 31 | <input type="password" disabled="disabled"/> <span class="false">FAIL</span> |
michael@0 | 32 | <input type="password" id="i3"/> <span class="false">FAIL</span> |
michael@0 | 33 | <input type="password" id="i4" disabled="disabled"/> <span class="true">FAIL</span> |
michael@0 | 34 | </div> |
michael@0 | 35 | |
michael@0 | 36 | <div> |
michael@0 | 37 | checkbox: |
michael@0 | 38 | <input type="checkbox"/> <span class="true">FAIL</span> |
michael@0 | 39 | <input type="checkbox" disabled="disabled"/> <span class="false">FAIL</span> |
michael@0 | 40 | <input type="checkbox" id="i5"/> <span class="false">FAIL</span> |
michael@0 | 41 | <input type="checkbox" id="i6" disabled="disabled"/> <span class="true">FAIL</span> |
michael@0 | 42 | </div> |
michael@0 | 43 | |
michael@0 | 44 | <div> |
michael@0 | 45 | radio: |
michael@0 | 46 | <input type="radio"/> <span class="true">FAIL</span> |
michael@0 | 47 | <input type="radio" disabled="disabled"/> <span class="false">FAIL</span> |
michael@0 | 48 | <input type="radio" id="i7"/> <span class="false">FAIL</span> |
michael@0 | 49 | <input type="radio" id="i8" disabled="disabled"/> <span class="true">FAIL</span> |
michael@0 | 50 | </div> |
michael@0 | 51 | |
michael@0 | 52 | <div> |
michael@0 | 53 | submit: |
michael@0 | 54 | <input type="submit"/> <span class="true">FAIL</span> |
michael@0 | 55 | <input type="submit" disabled="disabled"/> <span class="false">FAIL</span> |
michael@0 | 56 | <input type="submit" id="i9"/> <span class="false">FAIL</span> |
michael@0 | 57 | <input type="submit" id="i10" disabled="disabled"/> <span class="true">FAIL</span> |
michael@0 | 58 | </div> |
michael@0 | 59 | |
michael@0 | 60 | <div> |
michael@0 | 61 | reset: |
michael@0 | 62 | <input type="reset"/> <span class="true">FAIL</span> |
michael@0 | 63 | <input type="reset" disabled="disabled"/> <span class="false">FAIL</span> |
michael@0 | 64 | <input type="reset" id="i11"/> <span class="false">FAIL</span> |
michael@0 | 65 | <input type="reset" id="i12" disabled="disabled"/> <span class="true">FAIL</span> |
michael@0 | 66 | </div> |
michael@0 | 67 | |
michael@0 | 68 | <div> |
michael@0 | 69 | file: |
michael@0 | 70 | <input type="file"/> <span class="true">FAIL</span> |
michael@0 | 71 | <input type="file" disabled="disabled"/> <span class="false">FAIL</span> |
michael@0 | 72 | <input type="file" id="i13"/> <span class="false">FAIL</span> |
michael@0 | 73 | <input type="file" id="i14" disabled="disabled"/> <span class="true">FAIL</span> |
michael@0 | 74 | </div> |
michael@0 | 75 | |
michael@0 | 76 | <div> |
michael@0 | 77 | hidden: |
michael@0 | 78 | <input type="hidden"/> <span class="true">FAIL</span> |
michael@0 | 79 | <input type="hidden" disabled="disabled"/> <span class="false">FAIL</span> |
michael@0 | 80 | <input type="hidden" id="i15"/> <span class="false">FAIL</span> |
michael@0 | 81 | <input type="hidden" id="i16" disabled="disabled"/> <span class="true">FAIL</span> |
michael@0 | 82 | </div> |
michael@0 | 83 | |
michael@0 | 84 | <div> |
michael@0 | 85 | image: |
michael@0 | 86 | <input type="image"/> <span class="true">FAIL</span> |
michael@0 | 87 | <input type="image" disabled="disabled"/> <span class="false">FAIL</span> |
michael@0 | 88 | <input type="image" id="i17"/> <span class="false">FAIL</span> |
michael@0 | 89 | <input type="image" id="i18" disabled="disabled"/> <span class="true">FAIL</span> |
michael@0 | 90 | </div> |
michael@0 | 91 | |
michael@0 | 92 | <div> |
michael@0 | 93 | button (input): |
michael@0 | 94 | <input type="button"/> <span class="true">FAIL</span> |
michael@0 | 95 | <input type="button" disabled="disabled"/> <span class="false">FAIL</span> |
michael@0 | 96 | <input type="button" id="i19"/> <span class="false">FAIL</span> |
michael@0 | 97 | <input type="button" id="i20" disabled="disabled"/> <span class="true">FAIL</span> |
michael@0 | 98 | </div> |
michael@0 | 99 | |
michael@0 | 100 | <div> |
michael@0 | 101 | textarea: |
michael@0 | 102 | <textarea cols="5" rows="5"></textarea> <span class="true">FAIL</span> |
michael@0 | 103 | <textarea cols="5" rows="5" disabled="disabled"></textarea> <span class="false">FAIL</span> |
michael@0 | 104 | <textarea cols="5" rows="5" id="i21"></textarea> <span class="false">FAIL</span> |
michael@0 | 105 | <textarea cols="5" rows="5" id="i22" disabled="disabled"></textarea> <span class="true">FAIL</span> |
michael@0 | 106 | </div> |
michael@0 | 107 | |
michael@0 | 108 | <div> |
michael@0 | 109 | button: |
michael@0 | 110 | <button>bogus</button> <span class="true">FAIL</span> |
michael@0 | 111 | <button disabled="disabled">bogus</button> <span class="false">FAIL</span> |
michael@0 | 112 | <button id="i23">bogus</button> <span class="false">FAIL</span> |
michael@0 | 113 | <button id="i24" disabled="disabled">bogus</button> <span class="true">FAIL</span> |
michael@0 | 114 | </div> |
michael@0 | 115 | |
michael@0 | 116 | <div> |
michael@0 | 117 | select: |
michael@0 | 118 | <select class="hideme"><option>bogus</option></select> <span class="true">FAIL</span> |
michael@0 | 119 | <select class="hideme" disabled="disabled"><option>bogus</option></select> <span class="false">FAIL</span> |
michael@0 | 120 | <select class="hideme" id="i25"><option>bogus</option></select> <span class="false">FAIL</span> |
michael@0 | 121 | <select class="hideme" id="i26" disabled="disabled"><option>bogus</option></select> <span class="true">FAIL</span> |
michael@0 | 122 | |
michael@0 | 123 | </div> |
michael@0 | 124 | |
michael@0 | 125 | <div> |
michael@0 | 126 | option: |
michael@0 | 127 | <select size="4"> |
michael@0 | 128 | <option class="true">FAIL</option> |
michael@0 | 129 | <option class="false" disabled="disabled">FAIL</option> |
michael@0 | 130 | <option class="false" id="i27">FAIL</option> |
michael@0 | 131 | <option class="true" id="i28" disabled="disabled">FAIL</option> |
michael@0 | 132 | </select> |
michael@0 | 133 | </div> |
michael@0 | 134 | |
michael@0 | 135 | <div> |
michael@0 | 136 | optgroup: |
michael@0 | 137 | <select size="4"> |
michael@0 | 138 | <optgroup class="true" label="FAIL"> |
michael@0 | 139 | <option class="hideme">bogus</option> |
michael@0 | 140 | </optgroup> |
michael@0 | 141 | <optgroup class="false" disabled="disabled" label="FAIL"> |
michael@0 | 142 | <option class="hideme">bogus</option> |
michael@0 | 143 | </optgroup> |
michael@0 | 144 | <optgroup class="false" id="i29" label="FAIL"> |
michael@0 | 145 | <option class="hideme">bogus</option> |
michael@0 | 146 | </optgroup> |
michael@0 | 147 | <optgroup class="true" disabled="disabled" id="i30" label="FAIL"> |
michael@0 | 148 | <option class="hideme">bogus</option> |
michael@0 | 149 | </optgroup> |
michael@0 | 150 | </select> |
michael@0 | 151 | </div> |
michael@0 | 152 | |
michael@0 | 153 | </form> |
michael@0 | 154 | |
michael@0 | 155 | </body> |
michael@0 | 156 | </html> |