layout/reftests/css-ui-invalid/input/input-checkbox-required-invalid-changed.html

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     1 <!DOCTYPE html>
     2 <html class="reftest-wait">
     3   <!-- Test: if input isn't valid nor barred from constraint validation,
     4              and its checkedness has changed,
     5              it should be affected by :-moz-ui-invalid pseudo-class. -->
     6   <link rel='stylesheet' type='text/css' href='style.css'>
     7   <body onload="document.getElementById('i').checked = false;
     8                 if (!document.getElementById('i').mozMatchesSelector(':-moz-ui-invalid')) {
     9                   document.body.textContent='FAIL';
    10                 } else {
    11                   document.body.textContent='SUCCESS';
    12                 }
    13                 document.documentElement.className='';">
    14     <input id='i' type='checkbox' required>
    15   </body>
    16 </html>

mercurial