84400-2-ref.html (1931B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 3 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 4 <html xmlns="http://www.w3.org/1999/xhtml"> 5 <head> 6 <title>Testing controls that should not match :enabled/:disabled</title> 7 <style type="text/css"> 8 input, label, object, *.hideme { display: none; } 9 div { margin-bottom: 1em; } 10 11 span, legend { color: lime; background-color: lime; } 12 13 #test + span { color: lime; background-color: lime; } 14 </style> 15 </head> 16 <body> 17 <div> 18 There should be no red in the following (note: form styling should be enabled). 19 </div> 20 21 <form method="get" action="."> 22 <div> 23 Make sure that :default is actually implemented: 24 <input id="test"/> <span>FAIL</span> 25 </div> 26 27 <div> 28 label: 29 <label>bogus</label> <span>FAIL</span> 30 <label disabled="disabled">bogus</label> <span>FAIL</span> 31 </div> 32 33 <div> 34 legend: 35 <fieldset><legend>FAIL</legend></fieldset> 36 <fieldset><legend disabled="disabled">FAIL</legend></fieldset> 37 <fieldset disabled="disabled"><legend>FAIL</legend></fieldset> 38 </div> 39 40 <div> 41 div (inside form): 42 <div class="hideme">bogus</div> <span>FAIL</span> 43 <div class="hideme" disabled="disabled">bogus</div> <span>FAIL</span> 44 </div> 45 46 </form> 47 48 <div> 49 div (outside form): 50 <div class="hideme">bogus</div> <span>FAIL</span> 51 <div class="hideme" disabled="disabled">bogus</div> <span>FAIL</span> 52 </div> 53 54 <div> 55 object: 56 <object>bogus</object> <span>FAIL</span> 57 <object disabled="disabled">bogus</object> <span>FAIL</span> 58 </div> 59 60 <div> 61 form: 62 <form class="hideme" method="get" action="."><p><input/></p></form> <span>FAIL</span> 63 <form class="hideme" method="get" action="." disabled="disabled"><p><input/></p></form> <span>FAIL</span> 64 </div> 65 </body> 66 </html>