diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2017-08-17 21:08:44 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-03-12 09:50:12 +0100 |
commit | 092c61f6e68971a62822532e12dc45ba54c9a713 (patch) | |
tree | b3e1aa03886aded4e908c834caf69bba13b507e7 /layout/reftests/bugs/315920-17.html | |
parent | 76e1c016a32cb8cee6f5a0a0012fe512570da1eb (diff) | |
download | UXP-092c61f6e68971a62822532e12dc45ba54c9a713.tar UXP-092c61f6e68971a62822532e12dc45ba54c9a713.tar.gz UXP-092c61f6e68971a62822532e12dc45ba54c9a713.tar.lz UXP-092c61f6e68971a62822532e12dc45ba54c9a713.tar.xz UXP-092c61f6e68971a62822532e12dc45ba54c9a713.zip |
CSS: inline-block with a display:block <input> child element has a wrong baseline (HTML forms)
Diffstat (limited to 'layout/reftests/bugs/315920-17.html')
-rw-r--r-- | layout/reftests/bugs/315920-17.html | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/layout/reftests/bugs/315920-17.html b/layout/reftests/bugs/315920-17.html index 1681754a5..6d9180144 100644 --- a/layout/reftests/bugs/315920-17.html +++ b/layout/reftests/bugs/315920-17.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html> +<html class="reftest-wait"> <head> <style> input ~ label {color: red} @@ -8,9 +8,7 @@ input:checked:default + label {color: green} </style> </head> - <body onload='document.getElementById("two").setAttribute("checked", "true"); - document.getElementById("one").setAttribute("checked", "checked"); - document.getElementById("two").removeAttribute("checked");'> + <body> <form> <input type="checkbox" name="group1" id="one" value="1"/> <label for="one">Should be no red</label><br> @@ -19,5 +17,14 @@ <input type="checkbox" name="group1" id="three" value="3"/> <label for="three">Should be no red</label> </form> +<script> +function doTest() { + document.getElementById("two").setAttribute("checked", "true"); + document.getElementById("one").setAttribute("checked", "checked"); + document.getElementById("two").removeAttribute("checked"); + setTimeout(function () { document.documentElement.removeAttribute("class"); }, 0); +} +window.addEventListener("MozReftestInvalidate", doTest); +</script> </body> </html> |