Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / sheet-title.html
blob98e0174bb40984f5acf29b9f1ff904cd0486c50a
1 <html>
2 <head>
3 <script language='javascript'>
4 function runTest() {
5 if (window.testRunner)
6 testRunner.dumpAsText();
7 if (document.styleSheets[0].title == "basic" &&
8 document.styleSheets[1].title == "basic") {
9 document.getElementById("q").title = "advanced";
10 if (document.styleSheets[1].title == "advanced")
11 document.getElementById('result').innerHTML = 'SUCCESS';
14 </script>
15 <link media="all" href="foo.css" rel="stylesheet" title="basic">
16 <style type="text/css" id="q" title="basic">
17 #foo {
18 background-color: #66CCFF;
20 </style>
21 </head>
22 <body onload="runTest()">
23 <p>Test setting of the title of stylesheets for both &lt;link&gt; and &lt;style&gt; elements. See bug #11824.</p>
24 <div id="result">FAILURE</div>
25 </body>
26 </html>