summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-default/submit-button/default-multiple-submit-1.html
blob: 19c71e3c22a2b28880ba60c98ff1d73ee68693af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
  <style>
    input { color: green; }
    input.notdefault:default { color: red; }
    input.default:not(:default) { color: red; }
  </style>
  <body>
    <form id="one"></form>
    <input type="submit" form="one" class="default" id="test">
    <form id="two">
      <input type="submit" class="notdefault">
    </form>
    <script>
      document.body.offsetWidth;
      document.getElementById("test").setAttribute("form", "two");
    </script>
  </body>
</html>