browser/devtools/styleinspector/test/doc_content_stylesheet.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <html>
     2 <head>
     3   <title>test</title>
     5   <link href="./doc_content_stylesheet_linked.css" rel="stylesheet" type="text/css">
     7   <script>
     8     // Load script.css
     9     function loadCSS() {
    10       var link = document.createElement('link');
    11       link.rel = 'stylesheet';
    12       link.type = 'text/css';
    13       link.href = "./doc_content_stylesheet_script.css";
    14       document.getElementsByTagName('head')[0].appendChild(link);
    15     }
    16   </script>
    18   <style>
    19     table {
    20       border: 1px solid #000;
    21     }
    22   </style>
    23 </head>
    24 <body onload="loadCSS();">
    25   <table id="target">
    26     <tr>
    27       <td>
    28         <h3>Simple test</h3>
    29       </td>
    30     </tr>
    31   </table>
    32 </body>
    33 </html>

mercurial