4 if (window.testRunner) {
5 testRunner.dumpDOMAsWebArchive();
6 testRunner.waitUntilDone();
11 if (window.testRunner) {
12 // FIXME: Web fonts are loaded asynchronously, and there is
13 // no way to know when they're done, so just wait a bit.
14 setTimeout("testRunner.notifyDone()", 1000);
21 font-family: webkit-ahem;
23 src: url(firstInvalidURL), url(secondInvalidURL), url(../resources/Ahem.ttf);
27 border: solid black 1px;
29 background: url(resources/apple.gif?background) no-repeat top left;
32 div.background-image {
33 border: solid black 1px;
35 background-image: url(resources/apple.gif?background-image);
39 border: solid black 1px;
44 content: url(resources/apple.gif?content);
48 border: solid black 1px;
50 cursor: url(resources/apple.gif?cursor), auto;
54 border: solid black 1px;
59 font-family: webkit-ahem;
62 div.list-style-image {
63 border: solid black 1px;
64 list-style: square inside url(resources/apple.gif?list-style-image);
67 div.webkit-border-image {
68 border: solid black 1px;
69 display: inline-block;
72 border-color: transparent;
74 -webkit-box-sizing: border-box;
75 -webkit-border-fit: lines;
76 border-width: 20px 15px 10px 15px;
77 -webkit-border-image: url(resources/apple.gif?webkit-border-image) 20 15 10 15;
80 div.webkit-box-reflect {
81 border: solid black 1px;
83 background-color: white;
86 img.webkit-box-reflect {
87 -webkit-box-reflect: below 2px url(resources/apple.gif?webkit-box-reflect) 75 75 75 75 stretch stretch;
91 border: solid black 1px;
92 background-color: pink;
94 -webkit-mask: url(resources/apple.gif?mask) repeat scroll center top;
97 div.webkit-mask-box-image {
98 border: solid black 1px;
102 background-color: maroon;
103 -webkit-mask-box-image: url(resources/apple.gif?mask-box-image) 75 75 75 75;
106 div.webkit-mask-image {
107 border: solid black 1px;
110 border: 1px dotted green;
112 background-color: black;
113 -webkit-mask-image: url(resources/apple.gif?mask-image);
114 -webkit-mask-origin: padding;
115 -webkit-mask-size: 25px 25px;
118 div.webkit-mask-image-list {
119 border: solid black 1px;
121 border: 10px solid black;
122 background-color: lime;
123 -webkit-mask-image: url(resources/apple.gif?mask-top-left), url(resources/apple.gif?mask-top-right), url(resources/apple.gif?mask-bottom-left), url(resources/apple.gif?mask-bottom-right), url(resources/apple.gif?mask-top), url(resources/apple.gif?mask-right), url(resources/apple.gif?mask-bottom), url(resources/apple.gif?mask-left), url(resources/apple.gif?mask-center);
124 -webkit-mask-position: top left, top right, bottom left, bottom right, top center, center right, bottom center, center left, center;
125 -webkit-mask-origin: border;
126 -webkit-mask-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat-x, repeat-y, repeat-x, repeat-y, repeat;
127 -webkit-mask-composite: copy;
132 <body onload="notifyDone()">
133 <div><p>This page tests that url() resources referenced in CSS stylesheets are saved in webarchives.</p></div>
134 <div class="background">This element should have one Apple logo in the background at the top left.</div>
135 <div class="background-image">This element should have repeated Apple logos in both x- and y-dimensions in the background.</div>
136 <div class="content"><img class="content">This element should contain an img element that draws an Apple logo.</div>
137 <div class="cursor">The cursor should change to an Apple logo inside this element.</div>
138 <div class="font-family">This element contains "Ahem" written in the Ahem font: <span class="font-family">Ahem</span></div>
139 <div class="list-style-image">
147 <div class="webkit-border-image">This content should be inside a strectched Apple logo.</div>
148 <div class="webkit-box-reflect"><img src="resources/apple.gif?webkit-box-reflect-image" class="webkit-box-reflect">This element should have an image of an Apple logo with a full reflection below it.</div>
149 <div class="webkit-mask"><br>This element should have solid pink Apple logos as its mask.</div>
150 <div class="webkit-mask-box-image"><br>This element should have maroon Apple logos for "borders" with a maroon background.</div>
151 <div class="webkit-mask-image">This element should have black Apple logos for its background.</div>
152 <div class="webkit-mask-image-list"><br>This element should have lime Apple logos for its background and borders with a black outer border.</div>