mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Add reftests for bug 231081
This commit is contained in:
parent
8c883d4df5
commit
ee5e332fa7
27
layout/reftests/forms/checkbox-label-dynamic-ref.html
Normal file
27
layout/reftests/forms/checkbox-label-dynamic-ref.html
Normal file
@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
|
||||
#c3, #c4 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
label[for="c1"],
|
||||
label[for="c3"] {
|
||||
background-color: yellow;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div><input type="checkbox" name="test" id="c1" checked><label for="c1">check #c1</label></div>
|
||||
<div><input type="checkbox" name="test" id="c2"><label for="c2">check #c2</label></div>
|
||||
<div><input type="checkbox" name="test" id="c3" checked><label for="c3">check #c3</label></div>
|
||||
<div><input type="checkbox" name="test" id="c4"><label for="c4">check #c4</label></div>
|
||||
|
||||
</body>
|
||||
</html>
|
37
layout/reftests/forms/checkbox-label-dynamic.html
Normal file
37
layout/reftests/forms/checkbox-label-dynamic.html
Normal file
@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
|
||||
#c3, #c4 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
input:checked + label {
|
||||
background-color: yellow;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function toggleAllCheckboxes()
|
||||
{
|
||||
for (var i = 1; i <= 4; ++i) {
|
||||
var cb = document.getElementById('c'+i);
|
||||
cb.checked = !cb.checked;
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body onload="toggleAllCheckboxes();">
|
||||
|
||||
<div><input type="checkbox" name="test" id="c1"><label for="c1">check #c1</label></div>
|
||||
<div><input type="checkbox" name="test" id="c2" checked><label for="c2">check #c2</label></div>
|
||||
<div><input type="checkbox" name="test" id="c3"><label for="c3">check #c3</label></div>
|
||||
<div><input type="checkbox" name="test" id="c4" checked><label for="c4">check #c4</label></div>
|
||||
|
||||
</body>
|
||||
</html>
|
38
layout/reftests/forms/radio-label-dynamic-ref.html
Normal file
38
layout/reftests/forms/radio-label-dynamic-ref.html
Normal file
@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
|
||||
.hideradios input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
label[for="a2"],
|
||||
label[for="b2"] {
|
||||
background-color: yellow;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div>
|
||||
<div><input type="radio" name="a" id="a1"><label for="a1">radio #a1</label></div>
|
||||
<div><input type="radio" name="a" id="a2" checked><label for="a2">radio #a2</label></div>
|
||||
<div><input type="radio" name="a" id="a3"><label for="a3">radio #a3</label></div>
|
||||
<div><input type="radio" name="a" id="a4"><label for="a4">radio #a4</label></div>
|
||||
<div><input type="radio" name="a" id="a5"><label for="a5">radio #a5</label></div>
|
||||
</div>
|
||||
|
||||
<div class="hideradios">
|
||||
<div><input type="radio" name="b" id="b1"><label for="b1">radio #b1</label></div>
|
||||
<div><input type="radio" name="b" id="b2" checked><label for="b2">radio #b2</label></div>
|
||||
<div><input type="radio" name="b" id="b3"><label for="b3">radio #b3</label></div>
|
||||
<div><input type="radio" name="b" id="b4"><label for="b4">radio #b4</label></div>
|
||||
<div><input type="radio" name="b" id="b5"><label for="b5">radio #b5</label></div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
46
layout/reftests/forms/radio-label-dynamic.html
Normal file
46
layout/reftests/forms/radio-label-dynamic.html
Normal file
@ -0,0 +1,46 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
|
||||
.hideradios input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
input:checked + label {
|
||||
background-color: yellow;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function chooseSecondItems()
|
||||
{
|
||||
document.getElementById("a2").checked = true;
|
||||
document.getElementById("b2").checked = true;
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body onload="chooseSecondItems();">
|
||||
|
||||
<div>
|
||||
<div><input type="radio" name="a" id="a1"><label for="a1">radio #a1</label></div>
|
||||
<div><input type="radio" name="a" id="a2"><label for="a2">radio #a2</label></div>
|
||||
<div><input type="radio" name="a" id="a3"><label for="a3">radio #a3</label></div>
|
||||
<div><input type="radio" name="a" id="a4" checked><label for="a4">radio #a4</label></div>
|
||||
<div><input type="radio" name="a" id="a5"><label for="a5">radio #a5</label></div>
|
||||
</div>
|
||||
|
||||
<div class="hideradios">
|
||||
<div><input type="radio" name="b" id="b1"><label for="b1">radio #b1</label></div>
|
||||
<div><input type="radio" name="b" id="b2"><label for="b2">radio #b2</label></div>
|
||||
<div><input type="radio" name="b" id="b3"><label for="b3">radio #b3</label></div>
|
||||
<div><input type="radio" name="b" id="b4" checked><label for="b4">radio #b4</label></div>
|
||||
<div><input type="radio" name="b" id="b5"><label for="b5">radio #b5</label></div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,3 +1,5 @@
|
||||
== checkbox-label-dynamic.html checkbox-label-dynamic-ref.html
|
||||
== input-file-width-clip-1.html input-file-width-clip-ref.html # bug 409587
|
||||
== input-text-size-1.html input-text-size-1-ref.html
|
||||
== input-text-size-2.html input-text-size-2-ref.html
|
||||
== radio-label-dynamic.html radio-label-dynamic-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user