accessible/tests/mochitest/jsat/doc_content_integration.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/tests/mochitest/jsat/doc_content_integration.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,69 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +<head>
     1.7 +  <title>Traversal Rule test document</title>
     1.8 +  <meta charset="utf-8" />
     1.9 +  <script>
    1.10 +    var frameContents = '<html>' +
    1.11 +      '<head><title>such app</title></head>' +
    1.12 +      '<body>' +
    1.13 +      '<h1>wow</h1>' +
    1.14 +      '<label><input type="checkbox">many option</label><br>' +
    1.15 +      '<label for="r">much range</label>' +
    1.16 +      '<input min="0" max="10" value="5" type="range" id="r">' +
    1.17 +      '</body>' +
    1.18 +      '</html>';
    1.19 +
    1.20 +    function showAlert() {
    1.21 +      document.getElementById('alert').hidden = false;
    1.22 +    }
    1.23 +
    1.24 +    function hideAlert() {
    1.25 +      document.getElementById('alert').hidden = true;
    1.26 +    }
    1.27 +
    1.28 +  </script>
    1.29 +  <style>
    1.30 +    #windows {
    1.31 +      position: relative;
    1.32 +      width: 320px;
    1.33 +      height: 480px;
    1.34 +    }
    1.35 +
    1.36 +    #windows > iframe {
    1.37 +      z-index: 1;
    1.38 +    }
    1.39 +
    1.40 +    #windows > div[role='dialog'] {
    1.41 +      z-index: 2;
    1.42 +      background-color: pink;
    1.43 +    }
    1.44 +
    1.45 +    #windows > * {
    1.46 +      position: absolute;
    1.47 +      width: 100%;
    1.48 +      height: 100%;
    1.49 +    }
    1.50 +
    1.51 +    iframe {
    1.52 +      width: 100%;
    1.53 +      height: 100%;
    1.54 +    }
    1.55 +
    1.56 +  </style>
    1.57 +
    1.58 +</head>
    1.59 +<body>
    1.60 +  <div>Phone status bar</div>
    1.61 +  <div id="windows">
    1.62 +    <div id="appframe"></div>
    1.63 +    <div role="dialog" id="alert" hidden>
    1.64 +      <h1>This is an alert!</h1>
    1.65 +      <p>Do you agree?</p>
    1.66 +      <button onclick="hideAlert()">Yes</button>
    1.67 +      <button onclick="hideAlert()">No</button>
    1.68 +    </div>
    1.69 +  </div>
    1.70 +  <button id="home">Home</button>
    1.71 +</body>
    1.72 +</html>

mercurial