Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / sheet-collection-link.html
blob4e55a0c8211d0884c1a6e334726b77d371f80a05
1 <html>
2 <head>
3 <script language='javascript'>
4 function runTest()
6 if (window.testRunner)
7 testRunner.dumpAsText();
8 var sheets = document.styleSheets;
9 if (sheets.length == 11) {
10 for (i = 0; i < sheets.length; i++) {
11 if (sheets[i].cssRules.length != 1
12 || sheets[i].cssRules[0].type != CSSRule.STYLE_RULE
13 || sheets[i].cssRules[0].style.backgroundImage === "") {
14 return;
17 document.getElementById('result').innerHTML = 'SUCCESS';
20 </script>
21 <link media="all" href="resources/background_image.css" rel="stylesheet">
22 <link media="aural" href="resources/background_image.css" rel="stylesheet">
23 <link media="braille" href="resources/background_image.css" rel="stylesheet">
24 <link media="embossed" href="resources/background_image.css" rel="stylesheet">
25 <link media="handheld" href="resources/background_image.css" rel="stylesheet">
26 <link media="print" href="resources/background_image.css" rel="stylesheet">
27 <link media="projection" href="resources/background_image.css" rel="stylesheet">
28 <link media="screen" href="resources/background_image.css" rel="stylesheet">
29 <link media="tty" href="resources/background_image.css" rel="stylesheet">
30 <link media="tv" href="resources/background_image.css" rel="stylesheet">
31 <link media="invalid" href="resources/background_image.css" rel="stylesheet">
32 </head>
33 <body onload="runTest()">
34 <p>Test that the styleSheet collection contains all sheets referenced through the &lt;link&gt; elements. See bug #22429.</p>
35 <div id="result">FAILURE</div>
36 </body>
37 </html>