1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/84400-2-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,66 @@ 1.4 +<?xml version="1.0" encoding="UTF-8"?> 1.5 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 1.6 + "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 1.7 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.8 + <head> 1.9 + <title>Testing controls that should not match :enabled/:disabled</title> 1.10 + <style type="text/css"> 1.11 + input, label, object, *.hideme { display: none; } 1.12 + div { margin-bottom: 1em; } 1.13 + 1.14 + span, legend { color: lime; background-color: lime; } 1.15 + 1.16 + #test + span { color: lime; background-color: lime; } 1.17 + </style> 1.18 + </head> 1.19 + <body> 1.20 + <div> 1.21 + There should be no red in the following (note: form styling should be enabled). 1.22 + </div> 1.23 + 1.24 + <form method="get" action="."> 1.25 + <div> 1.26 + Make sure that :default is actually implemented: 1.27 + <input id="test"/> <span>FAIL</span> 1.28 + </div> 1.29 + 1.30 + <div> 1.31 + label: 1.32 + <label>bogus</label> <span>FAIL</span> 1.33 + <label disabled="disabled">bogus</label> <span>FAIL</span> 1.34 + </div> 1.35 + 1.36 + <div> 1.37 + legend: 1.38 + <fieldset><legend>FAIL</legend></fieldset> 1.39 + <fieldset><legend disabled="disabled">FAIL</legend></fieldset> 1.40 + <fieldset disabled="disabled"><legend>FAIL</legend></fieldset> 1.41 + </div> 1.42 + 1.43 + <div> 1.44 + div (inside form): 1.45 + <div class="hideme">bogus</div> <span>FAIL</span> 1.46 + <div class="hideme" disabled="disabled">bogus</div> <span>FAIL</span> 1.47 + </div> 1.48 + 1.49 + </form> 1.50 + 1.51 + <div> 1.52 + div (outside form): 1.53 + <div class="hideme">bogus</div> <span>FAIL</span> 1.54 + <div class="hideme" disabled="disabled">bogus</div> <span>FAIL</span> 1.55 + </div> 1.56 + 1.57 + <div> 1.58 + object: 1.59 + <object>bogus</object> <span>FAIL</span> 1.60 + <object disabled="disabled">bogus</object> <span>FAIL</span> 1.61 + </div> 1.62 + 1.63 + <div> 1.64 + form: 1.65 + <form class="hideme" method="get" action="."><p><input/></p></form> <span>FAIL</span> 1.66 + <form class="hideme" method="get" action="." disabled="disabled"><p><input/></p></form> <span>FAIL</span> 1.67 + </div> 1.68 + </body> 1.69 +</html>