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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial