diff options
Diffstat (limited to '')
33 files changed, 636 insertions, 0 deletions
diff --git a/layout/reftests/css-invalid/fieldset/fieldset-add-invalid-barred.html b/layout/reftests/css-invalid/fieldset/fieldset-add-invalid-barred.html new file mode 100644 index 0000000000..74150b303e --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-add-invalid-barred.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<!-- fieldset with invalid barred for constraint validation element --> +<html> + <head> + <style> + fieldset:valid { display: none ;} + </style> + <script> + function onloadHandler() + { + document.getElementById("fieldset").appendChild(document.getElementById('i')); + document.documentElement.className = ''; + } + </script> + </head> + <body onload="onloadHandler();"> + <input required readonly id="i"> + <fieldset id="fieldset"> + </fieldset> + </body> +</html> + diff --git a/layout/reftests/css-invalid/fieldset/fieldset-add-invalid-element-dynamic.html b/layout/reftests/css-invalid/fieldset/fieldset-add-invalid-element-dynamic.html new file mode 100644 index 0000000000..3485e88069 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-add-invalid-element-dynamic.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<!-- fieldset with no elements and invalid element is added dynamically --> +<html> + <head> + <style> + fieldset:invalid { display:none } + </style> + <script> + function onLoadHandler() + { + document.getElementById("fieldset").appendChild(document.getElementById('i')); + document.documentElement.className=''; + } + </script> + </head> + <body onload='onLoadHandler();'> + <input id='i' required> + <fieldset id="fieldset"> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-add-invalid-element.html b/layout/reftests/css-invalid/fieldset/fieldset-add-invalid-element.html new file mode 100644 index 0000000000..855a432ce7 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-add-invalid-element.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<!--fieldset with one invalid element and another invalid one is added dynamically --> +<html class='reftest-wait'> + <head> + <style> + fieldset:invalid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById("fieldset").appendChild(document.getElementById('i')); + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <input id='i' type='email' value='foo'> + <fieldset id="fieldset"> + <input id='j' type='email' value='foo'> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-add-invalid-with-valid-element.html b/layout/reftests/css-invalid/fieldset/fieldset-add-invalid-with-valid-element.html new file mode 100644 index 0000000000..ab62debd35 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-add-invalid-with-valid-element.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<!--fieldset with one valid element and invalid one is added dynamically --> +<html class='reftest-wait'> + <head> + <style> + fieldset:invalid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById("fieldset").appendChild(document.getElementById('i')); + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <input id='i' type='email' value='bar'> + <fieldset id="fieldset"> + <input id='j' type='text' value='foo'> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-add-valid-element.html b/layout/reftests/css-invalid/fieldset/fieldset-add-valid-element.html new file mode 100644 index 0000000000..6e5363d6b9 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-add-valid-element.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<!--fieldset with one valid element and another valid one is added dynamically --> +<html class='reftest-wait'> + <head> + <style> + fieldset:valid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById("fieldset").appendChild(document.getElementById('i')); + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <input id='i' type='text' value='bar'> + <fieldset id="fieldset"> + <input id='j' type='text' value='foo'> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-add-valid-with-invalid-element.html b/layout/reftests/css-invalid/fieldset/fieldset-add-valid-with-invalid-element.html new file mode 100644 index 0000000000..4157831e64 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-add-valid-with-invalid-element.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<!--fieldset with one invalid element and another valid one is added dynamically --> +<html class='reftest-wait'> + <head> + <style> + fieldset:invalid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById("fieldset").appendChild(document.getElementById('i')); + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <input id='i' type='text' value='foo'> + <fieldset id="fieldset"> + <input id='j' type='email' value='emailfoo'> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-add-valid-with-no-element.html b/layout/reftests/css-invalid/fieldset/fieldset-add-valid-with-no-element.html new file mode 100644 index 0000000000..bfdf264af2 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-add-valid-with-no-element.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<!--fieldset with no valid element and another valid one is added dynamically --> +<html class='reftest-wait'> + <head> + <style> + fieldset:valid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById("fieldset").appendChild(document.getElementById('i')); + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <input id='i' type='text' value='foo'> + <fieldset id="fieldset"> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-div-invalid.html b/layout/reftests/css-invalid/fieldset/fieldset-div-invalid.html new file mode 100644 index 0000000000..2c1b47b78c --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-div-invalid.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<!-- fieldset with input in div should become invalid --> +<html> + <head> + <style> + fieldset:invalid { display: none ;} + </style> + </head> + <body> + <fieldset> + <div> + <input required value=""> + </div> + </fieldset> + </body> +</html> + diff --git a/layout/reftests/css-invalid/fieldset/fieldset-dynamic-invalid-barred.html b/layout/reftests/css-invalid/fieldset/fieldset-dynamic-invalid-barred.html new file mode 100644 index 0000000000..2671994077 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-dynamic-invalid-barred.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> +<!-- fieldset with one invalid element and dynamically made it element with +barred constraints --> +<html class='reftest-wait'> + <head> + <style> + fieldset:valid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById('i').readOnly = true; + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <fieldset id="fieldset"> + <input id='i' required> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-dynamic-invalid-not-barred.html b/layout/reftests/css-invalid/fieldset/fieldset-dynamic-invalid-not-barred.html new file mode 100644 index 0000000000..cf7905f0c5 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-dynamic-invalid-not-barred.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html class='reftest-wait'> + <head> + <style> + fieldset:invalid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById('i').readOnly = false; + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <fieldset id="fieldset"> + <input id='i' required readonly> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-dynamic-invalid.html b/layout/reftests/css-invalid/fieldset/fieldset-dynamic-invalid.html new file mode 100644 index 0000000000..c40a920cd1 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-dynamic-invalid.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<!-- fieldset with one invalid element which is made invalid dynamically --> +<html class='reftest-wait'> + <head> + <style> + fieldset:invalid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById('i').value = ''; + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <fieldset id="fieldset"> + <input id='i' value='foo' required> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-dynamic-valid.html b/layout/reftests/css-invalid/fieldset/fieldset-dynamic-valid.html new file mode 100644 index 0000000000..bfa2660151 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-dynamic-valid.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<!-- fieldset with one valid element which is made valid dynamically --> +<html> + <head> + <style> + fieldset:valid {display: none;} + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById('i').value = 'foo'; + document.documentElement.className = ''; + } + </script> + <body onload="onloadHandler();"> + <fieldset id="fieldset"> + <input id='i' required> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-invalid-and-barred-remove-barred.html b/layout/reftests/css-invalid/fieldset/fieldset-invalid-and-barred-remove-barred.html new file mode 100644 index 0000000000..c750a38453 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-invalid-and-barred-remove-barred.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<!-- fieldset with one invalid element and a barred for constraint +validation element then you remove the second element --> +<html class='reftest-wait'> + <head> + <style> + fieldset:invalid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById("fieldset").removeChild(document.getElementById('j')); + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <fieldset id="fieldset"> + <input required> + <input id='j' value='foo' readonly> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-invalid-and-barred-remove-invalid.html b/layout/reftests/css-invalid/fieldset/fieldset-invalid-and-barred-remove-invalid.html new file mode 100644 index 0000000000..2bc2b2bb1a --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-invalid-and-barred-remove-invalid.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<!-- fieldset with one invalid element and a barred for constraint +validation element then you remove the second element --> +<html class='reftest-wait'> + <head> + <style> + fieldset:valid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById("fieldset").removeChild(document.getElementById('j')); + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <fieldset id="fieldset"> + <input id='j' required> + <input value='foo' readonly> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-invalid-and-barred.html b/layout/reftests/css-invalid/fieldset/fieldset-invalid-and-barred.html new file mode 100644 index 0000000000..8075550727 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-invalid-and-barred.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<!-- fieldset with one invalid element and a barred for constraint validation element --> +<html> + <head> + <style> + fieldset:invalid { display: none; } + </style> + </head> + <body> + <fieldset id="fieldset"> + <input required> + <input id='i' value='foo' readonly required> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-invalid.html b/layout/reftests/css-invalid/fieldset/fieldset-invalid.html new file mode 100644 index 0000000000..8f10b70e0a --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-invalid.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html class="reftest-wait"> +<!-- Invalid fieldset --> +<style> + fieldset:invalid { display: none; } +</style> +<body onload="document.getElementById('input').setCustomValidity('foo'); document.documentElement.className='';"> +<fieldset> + <input id="input"> +</fieldset> +</body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-is-barred.html b/layout/reftests/css-invalid/fieldset/fieldset-is-barred.html new file mode 100644 index 0000000000..ed104497b7 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-is-barred.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html class="reftest-wait"> +<!-- Fieldset is barred --> +<style> + fieldset:valid { display: none; } +</style> +<body onload="document.getElementById('f').setCustomValidity('foo'); document.documentElement.className='';"> +<fieldset id="f"> +</fieldset> +</body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-nested-barred-ref.html b/layout/reftests/css-invalid/fieldset/fieldset-nested-barred-ref.html new file mode 100644 index 0000000000..bd8b9a671e --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-nested-barred-ref.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<!-- Reference for input in nested fieldset becomes barred --> +<html> + <body> + <fieldset style="background-color: green;"> + <fieldset style="background-color: green;"> + <input id='i' required readonly> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-nested-barred.html b/layout/reftests/css-invalid/fieldset/fieldset-nested-barred.html new file mode 100644 index 0000000000..fea0c79ae2 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-nested-barred.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<!-- input in nested fieldset becomes barred --> +<html class='reftest-wait'> + <head> + <style> + fieldset:valid { background-color: green; } + fieldset:invalid { background-color: red; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById('i').readOnly = true; + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <fieldset> + <fieldset> + <input id='i' required> + </fieldset> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-nested-invalid.html b/layout/reftests/css-invalid/fieldset/fieldset-nested-invalid.html new file mode 100644 index 0000000000..ba266bf814 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-nested-invalid.html @@ -0,0 +1,17 @@ +<!DOCTYPE html> +<!-- Nested fieldsets should all become invalid --> +<html> + <head> + <style> + fieldset:invalid { display: none ;} + </style> + </head> + <body> + <fieldset> + <fieldset> + <input required value=""> + </fieldset> + </fieldset> + </body> +</html> + diff --git a/layout/reftests/css-invalid/fieldset/fieldset-nested-valid-invalid-ref.html b/layout/reftests/css-invalid/fieldset/fieldset-nested-valid-invalid-ref.html new file mode 100644 index 0000000000..4f8e399b6b --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-nested-valid-invalid-ref.html @@ -0,0 +1,22 @@ + +<!DOCTYPE html> +<!-- Nested fieldsets should be assigned validation correctly --> +<html> + <head> + <style> + fieldset:valid { background-color: green; } + fieldset:invalid { background-color: red; } + </style> + </head> + <body> + <fieldset style="background-color:red;"> + <fieldset style="background-color: green;"> + <input> + </fieldset> + <fieldset style="background-color: red"> + <input required> + </fieldset> + </fieldset> + </body> +</html> + diff --git a/layout/reftests/css-invalid/fieldset/fieldset-nested-valid-invalid.html b/layout/reftests/css-invalid/fieldset/fieldset-nested-valid-invalid.html new file mode 100644 index 0000000000..8f69730077 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-nested-valid-invalid.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<!-- Nested fieldsets should be assigned validation correctly --> +<html> + <head> + <style> + fieldset:valid { background-color: green; } + fieldset:invalid { background-color: red; } + </style> + </head> + <body> + <fieldset> + <fieldset> + <input> + </fieldset> + <fieldset> + <input required> + </fieldset> + </fieldset> + </body> +</html> + diff --git a/layout/reftests/css-invalid/fieldset/fieldset-remove-invalid-element.html b/layout/reftests/css-invalid/fieldset/fieldset-remove-invalid-element.html new file mode 100644 index 0000000000..7df987c9be --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-remove-invalid-element.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<!-- fieldset with one invalid element and the element is dynamically removed --> +<html class='reftest-wait'> + <head> + <style> + fieldset:valid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById("fieldset").removeChild(document.getElementById('i')); + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <fieldset id="fieldset"> + <input id='i' type='email' value='foo'> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-static-invalid-barred.html b/layout/reftests/css-invalid/fieldset/fieldset-static-invalid-barred.html new file mode 100644 index 0000000000..c2bf3db346 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-static-invalid-barred.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html> + <head> + <style> + fieldset:valid { display: none; } + </style> + </head> + <body> + <fieldset id="fieldset"> + <input required readonly> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-static-invalid.html b/layout/reftests/css-invalid/fieldset/fieldset-static-invalid.html new file mode 100644 index 0000000000..613286ec27 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-static-invalid.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<!--fieldset with only invalid elements --> +<html> + <head> + <style> + fieldset:invalid { display: none; } + </style> + </head> + <body> + <fieldset id="fieldset"> + <input required> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-static-valid.html b/layout/reftests/css-invalid/fieldset/fieldset-static-valid.html new file mode 100644 index 0000000000..590b7d30b7 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-static-valid.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<!-- fieldset with only valid elements --> +<html> + <head> + <style> + fieldset:valid { display: none; } + </style> + </head> + <body> + <fieldset id="fieldset"> + <input value='foo' required> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-valid-and-barred-remove-barred.html b/layout/reftests/css-invalid/fieldset/fieldset-valid-and-barred-remove-barred.html new file mode 100644 index 0000000000..06d715f9ee --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-valid-and-barred-remove-barred.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<!-- fieldset with one valid element and a barred for constraint +validation element then you remove the second element --> +<html class='reftest-wait'> + <head> + <style> + fieldset:valid { display: none; } + </style> + </head> + <script> + function onloadHandler() + { + document.getElementById("fieldset").removeChild(document.getElementById('j')); + document.documentElement.className = ''; + } + </script> + <body onload='onloadHandler();'> + <fieldset id="fieldset"> + <input id='i' value='foo' required> + <input id='j' value='bar' readonly> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-valid-and-barred.html b/layout/reftests/css-invalid/fieldset/fieldset-valid-and-barred.html new file mode 100644 index 0000000000..61f21f7e3d --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-valid-and-barred.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<!-- fieldset with one invalid element and a barred for constraint validation element --> +<html> + <head> + <style> + fieldset:valid { display: none; } + </style> + </head> + <body> + <fieldset id="fieldset"> + <input id='i' value='bar' required> + <input id='i' value='foo' readonly required> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-valid.html b/layout/reftests/css-invalid/fieldset/fieldset-valid.html new file mode 100644 index 0000000000..59e31af10c --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-valid.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<!-- Valid fieldset. --> +<html> + <head> + <style> + fieldset:valid { display: none ;} + </style> + </head> + <body> + <fieldset> + </fieldset> + </body> +</html> + diff --git a/layout/reftests/css-invalid/fieldset/fieldset-with-invalid-element-add-barred-dynamic.html b/layout/reftests/css-invalid/fieldset/fieldset-with-invalid-element-add-barred-dynamic.html new file mode 100644 index 0000000000..30fd521e4f --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-with-invalid-element-add-barred-dynamic.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<!-- fieldset with one valid element and you dynamically add a barred constraint +validation element --> +<html> + <head> + <style> + fieldset:invalid { display:none } + </style> + <script> + function onLoadHandler() + { + document.getElementById("fieldset").appendChild(document.getElementById('i')); + document.documentElement.className=''; + } + </script> + </head> + <body onload='onLoadHandler();'> + <input id='i' value='foo' readonly> + <fieldset id="fieldset"> + <input required> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-with-valid-and-invalid.html b/layout/reftests/css-invalid/fieldset/fieldset-with-valid-and-invalid.html new file mode 100644 index 0000000000..9a9d43a39f --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-with-valid-and-invalid.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<!-- fieldset with invalid and valid elements --> +<html> + <head> + <style> + fieldset:invalid { display: none; } + </style> + </head> + <body> + <fieldset> + <input id='i' value='foo'> + <input required> + <fieldset/> + <body> +<html> diff --git a/layout/reftests/css-invalid/fieldset/fieldset-with-valid-element-add-barred-dynamic.html b/layout/reftests/css-invalid/fieldset/fieldset-with-valid-element-add-barred-dynamic.html new file mode 100644 index 0000000000..3c1e8a3f9b --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/fieldset-with-valid-element-add-barred-dynamic.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<!-- fieldset with one valid element and you dynamically add a barred constraint +validation element --> +<html> + <head> + <style> + fieldset:valid { display:none } + </style> + <script> + function onLoadHandler() + { + document.getElementById("fieldset").appendChild(document.getElementById('i')); + document.documentElement.className=''; + } + </script> + </head> + <body onload='onLoadHandler();'> + <input id='i' value='foo' readonly> + <fieldset id="fieldset" id="fieldset"> + <input id='j' value='bar' required> + </fieldset> + </body> +</html> diff --git a/layout/reftests/css-invalid/fieldset/reftest.list b/layout/reftests/css-invalid/fieldset/reftest.list new file mode 100644 index 0000000000..16960cb430 --- /dev/null +++ b/layout/reftests/css-invalid/fieldset/reftest.list @@ -0,0 +1,29 @@ +== fieldset-valid.html about:blank +== fieldset-invalid.html about:blank +== fieldset-add-invalid-barred.html about:blank +== fieldset-add-invalid-element-dynamic.html about:blank +== fieldset-add-invalid-element.html about:blank +== fieldset-add-invalid-with-valid-element.html about:blank +== fieldset-add-valid-element.html about:blank +== fieldset-add-valid-with-invalid-element.html about:blank +== fieldset-add-valid-with-no-element.html about:blank +== fieldset-dynamic-invalid-barred.html about:blank +== fieldset-dynamic-invalid-not-barred.html about:blank +== fieldset-dynamic-invalid.html about:blank +== fieldset-dynamic-valid.html about:blank +== fieldset-invalid-and-barred-remove-barred.html about:blank +== fieldset-invalid-and-barred-remove-invalid.html about:blank +== fieldset-invalid-and-barred.html about:blank +== fieldset-remove-invalid-element.html about:blank +== fieldset-static-invalid-barred.html about:blank +== fieldset-static-invalid.html about:blank +== fieldset-static-valid.html about:blank +== fieldset-valid-and-barred-remove-barred.html about:blank +== fieldset-valid-and-barred.html about:blank +== fieldset-with-invalid-element-add-barred-dynamic.html about:blank +== fieldset-with-valid-and-invalid.html about:blank +== fieldset-with-valid-element-add-barred-dynamic.html about:blank +== fieldset-nested-invalid.html about:blank +== fieldset-div-invalid.html about:blank +== fieldset-nested-valid-invalid.html fieldset-nested-valid-invalid-ref.html +fuzzy-if(skiaContent,0-1,0-5) == fieldset-nested-barred.html fieldset-nested-barred-ref.html |