tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

content-110.xht (1475B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3     <head>
      4         <title>CSS Test: Content with a 'attr()' function as a value selecting 'onkeydown'</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content" />
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#content" />
      8         <link rel="match" href="../../reference/only_pass_parens_semicolon.html"/>
      9         <meta name="flags" content="dom" />
     10         <meta name="assert" content="The 'content' property properly handles the 'attr()' function when calling the attribute 'onkeydown'." />
     11         <meta http-equiv="Content-Script-Type" content="text/javascript" />
     12         <style type="text/css">
     13             div:before
     14             {
     15                 content: attr(onkeydown);
     16                 color: green;
     17             }
     18             div
     19             {
     20                 border: 2px solid black;
     21             }
     22         </style>
     23     </head>
     24     <body>
     25         <p>Test passes if only the word "PASS();" appears in the box below. Fail if there is any other additional text.</p>
     26         <div onkeydown="PASS();"></div>
     27         <script type="text/javascript">
     28             function PASS()
     29             {
     30                 return false;
     31             }
     32         </script>
     33     </body>
     34 </html>