layout/reftests/font-face/delete-rule-1.html

branch
TOR_BUG_9701
changeset 11
deefc01c0e14
equal deleted inserted replaced
-1:000000000000 0:d3ac14dc79de
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3 <html lang="en-US" class="reftest-wait">
4 <head>
5 <title></title>
6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7 <style type="text/css">
8
9 @font-face {
10 font-family: "MarkA";
11 src: url(../fonts/markA.ttf);
12 }
13
14 @font-face {
15 font-family: "MarkB";
16 src: url(../fonts/markB.ttf);
17 }
18
19 body { font-family: "MarkA", "MarkB"; }
20
21 </style>
22 <script type="application/ecmascript">
23
24 function run() {
25 var sheet = document.getElementsByTagName("style")[0].sheet;
26 for (var i = sheet.cssRules.length - 1; i >= 0; --i) {
27 if (sheet.cssRules[i].type == CSSRule.FONT_FACE_RULE) {
28 sheet.deleteRule(i);
29 }
30 }
31
32 document.documentElement.removeAttribute("class");
33 }
34
35 </script>
36 </head>
37 <body onload="setTimeout(run, 20)">
38
39 <p>ABC</p>
40
41 </body>
42 </html>

mercurial