3 <!-- This page is used to test that CSS resources are retrieved correctly by the
4 WebPageSerializer::generateSnapshot method
9 <link rel="stylesheet" type="text/css" href="link_styles.css" />
12 @import url('import_styles.css');
15 font-family: Chunkfive;
16 src: url('Chunkfive.otf');
17 src: url('Chunkfive-webfont.eot) format('eot');
21 font-family: Chunkfive, sans-serif;
27 background-image:url('blue_background.png');
31 list-style-image: url('ul-dot.png');
35 list-style-image: url('ol-dot.png');
41 // Dynamically creates a CSS style.
43 var styleText = "#divPurple {background-image:url('purple_background.png')}";
44 var div = document.getElementById('divPurple');
45 var styleNode= document.createElement('style');
46 styleNode.type= 'text/css';
47 styleNode.media= 'screen';
48 styleNode.appendChild(document.createTextNode(styleText));
49 div.appendChild(styleNode);
54 <body onload="onLoad()">
56 <!-- Text using an imported font -->
57 <div id='chunkfiveDiv'>This text uses the Chunkfive font.</div>
59 <!-- Style is in linked file -->
61 This div has a red image as its background.
64 <!-- Style is in a file imported in the linked file -->
66 This div has a orange image as its background.
69 <!-- Style is in an imported file -->
71 This div has a yellow image as its background.
74 <!-- Style is defined in a style section in the header -->
76 This div has a blue image as its background.
79 <!-- Style is inlined -->
80 <div id='divGreen' style="background-image:url('green_background.png')">
81 This div has a green image as its background.
84 <!-- Style id dynamically generated with JavaScript in the onload handler -->
86 This div has a purple image as its background.