1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/css-ui-invalid/input/input-checkbox-required-invalid-changed.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,16 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait"> 1.6 + <!-- Test: if input isn't valid nor barred from constraint validation, 1.7 + and its checkedness has changed, 1.8 + it should be affected by :-moz-ui-invalid pseudo-class. --> 1.9 + <link rel='stylesheet' type='text/css' href='style.css'> 1.10 + <body onload="document.getElementById('i').checked = false; 1.11 + if (!document.getElementById('i').mozMatchesSelector(':-moz-ui-invalid')) { 1.12 + document.body.textContent='FAIL'; 1.13 + } else { 1.14 + document.body.textContent='SUCCESS'; 1.15 + } 1.16 + document.documentElement.className='';"> 1.17 + <input id='i' type='checkbox' required> 1.18 + </body> 1.19 +</html>