layout/reftests/bugs/84400-2.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/bugs/84400-2.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,69 @@
     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 +      *:enabled + span, legend:enabled { background-color: red; }
    1.16 +      *:disabled + span, legend:disabled { background-color: red; }
    1.17 +
    1.18 +      #test + span { background-color: red; }
    1.19 +      #test:enabled + span { color: lime; background-color: lime; }
    1.20 +    </style>
    1.21 +  </head>
    1.22 +  <body>
    1.23 +    <div>
    1.24 +      There should be no red in the following (note: form styling should be enabled).
    1.25 +    </div>
    1.26 +
    1.27 +    <form method="get" action=".">
    1.28 +      <div>
    1.29 +	Make sure that :default is actually implemented:
    1.30 +	<input id="test"/> <span>FAIL</span>
    1.31 +      </div>
    1.32 +
    1.33 +      <div>
    1.34 +	label:
    1.35 +	<label>bogus</label> <span>FAIL</span>
    1.36 +	<label disabled="disabled">bogus</label> <span>FAIL</span>
    1.37 +      </div>      
    1.38 +
    1.39 +      <div>
    1.40 +	legend:
    1.41 +	<fieldset><legend>FAIL</legend></fieldset>
    1.42 +	<fieldset><legend disabled="disabled">FAIL</legend></fieldset>
    1.43 +	<fieldset disabled="disabled"><legend>FAIL</legend></fieldset>
    1.44 +      </div>
    1.45 +
    1.46 +      <div>
    1.47 +	div (inside form):
    1.48 +	<div class="hideme">bogus</div> <span>FAIL</span>
    1.49 +	<div class="hideme" disabled="disabled">bogus</div> <span>FAIL</span>
    1.50 +      </div>
    1.51 +
    1.52 +    </form>
    1.53 +
    1.54 +    <div>
    1.55 +      div (outside form):
    1.56 +      <div class="hideme">bogus</div> <span>FAIL</span>
    1.57 +      <div class="hideme" disabled="disabled">bogus</div> <span>FAIL</span>
    1.58 +    </div>
    1.59 +
    1.60 +    <div>
    1.61 +      object:
    1.62 +      <object>bogus</object> <span>FAIL</span>
    1.63 +      <object disabled="disabled">bogus</object> <span>FAIL</span>
    1.64 +    </div>
    1.65 +
    1.66 +    <div>
    1.67 +      form:
    1.68 +      <form class="hideme" method="get" action="."><p><input/></p></form> <span>FAIL</span>
    1.69 +      <form class="hideme" method="get" action="." disabled="disabled"><p><input/></p></form> <span>FAIL</span>
    1.70 +    </div>
    1.71 +  </body>
    1.72 +</html>

mercurial