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 not match :enabled/:disabled</title> |
michael@0 | 7 | <style type="text/css"> |
michael@0 | 8 | input, label, object, *.hideme { display: none; } |
michael@0 | 9 | div { margin-bottom: 1em; } |
michael@0 | 10 | |
michael@0 | 11 | span, legend { color: lime; background-color: lime; } |
michael@0 | 12 | *:enabled + span, legend:enabled { background-color: red; } |
michael@0 | 13 | *:disabled + span, legend:disabled { background-color: red; } |
michael@0 | 14 | |
michael@0 | 15 | #test + span { background-color: red; } |
michael@0 | 16 | #test:enabled + span { color: lime; background-color: lime; } |
michael@0 | 17 | </style> |
michael@0 | 18 | </head> |
michael@0 | 19 | <body> |
michael@0 | 20 | <div> |
michael@0 | 21 | There should be no red in the following (note: form styling should be enabled). |
michael@0 | 22 | </div> |
michael@0 | 23 | |
michael@0 | 24 | <form method="get" action="."> |
michael@0 | 25 | <div> |
michael@0 | 26 | Make sure that :default is actually implemented: |
michael@0 | 27 | <input id="test"/> <span>FAIL</span> |
michael@0 | 28 | </div> |
michael@0 | 29 | |
michael@0 | 30 | <div> |
michael@0 | 31 | label: |
michael@0 | 32 | <label>bogus</label> <span>FAIL</span> |
michael@0 | 33 | <label disabled="disabled">bogus</label> <span>FAIL</span> |
michael@0 | 34 | </div> |
michael@0 | 35 | |
michael@0 | 36 | <div> |
michael@0 | 37 | legend: |
michael@0 | 38 | <fieldset><legend>FAIL</legend></fieldset> |
michael@0 | 39 | <fieldset><legend disabled="disabled">FAIL</legend></fieldset> |
michael@0 | 40 | <fieldset disabled="disabled"><legend>FAIL</legend></fieldset> |
michael@0 | 41 | </div> |
michael@0 | 42 | |
michael@0 | 43 | <div> |
michael@0 | 44 | div (inside form): |
michael@0 | 45 | <div class="hideme">bogus</div> <span>FAIL</span> |
michael@0 | 46 | <div class="hideme" disabled="disabled">bogus</div> <span>FAIL</span> |
michael@0 | 47 | </div> |
michael@0 | 48 | |
michael@0 | 49 | </form> |
michael@0 | 50 | |
michael@0 | 51 | <div> |
michael@0 | 52 | div (outside form): |
michael@0 | 53 | <div class="hideme">bogus</div> <span>FAIL</span> |
michael@0 | 54 | <div class="hideme" disabled="disabled">bogus</div> <span>FAIL</span> |
michael@0 | 55 | </div> |
michael@0 | 56 | |
michael@0 | 57 | <div> |
michael@0 | 58 | object: |
michael@0 | 59 | <object>bogus</object> <span>FAIL</span> |
michael@0 | 60 | <object disabled="disabled">bogus</object> <span>FAIL</span> |
michael@0 | 61 | </div> |
michael@0 | 62 | |
michael@0 | 63 | <div> |
michael@0 | 64 | form: |
michael@0 | 65 | <form class="hideme" method="get" action="."><p><input/></p></form> <span>FAIL</span> |
michael@0 | 66 | <form class="hideme" method="get" action="." disabled="disabled"><p><input/></p></form> <span>FAIL</span> |
michael@0 | 67 | </div> |
michael@0 | 68 | </body> |
michael@0 | 69 | </html> |