summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-invalid/button/button-invalid.html
blob: f4850ad4228e2c9c88012233ba263d1915a5fc4a (plain)
1
2
3
4
5
6
7
8
9
<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: if button has a custom error, it should be affected by :invalid
             pseudo-class. -->
  <link rel='stylesheet' type='text/css' href='style.css'>
  <body onload="document.getElementById('b').setCustomValidity('foo'); document.documentElement.className='';">
    <button class='invalid' id='b'></button>
  </body>
</html>