3 <script src=
"../../resources/gc.js"></script>
5 if (window
.testRunner
) {
6 testRunner
.dumpAsText();
7 testRunner
.waitUntilDone();
12 style
= document
.createElement('style');
13 style
.textContent
= '@font-face { font-family: "A"; }';
14 document
.head
.appendChild(style
);
15 rulestyle
= document
.styleSheets
[0].cssRules
[0].style
;
16 document
.head
.removeChild(style
);
24 obj
= rulestyle
.parentRule
;
25 // If the gc() actually successfully reaps everything it can, then obj
26 // will end up null (post-fix). gc() is not guaranteed to reap the font-face
27 // rule, however, particularly in the browser context.
30 document
.body
.innerText
= 'PASS';
31 if (window
.testRunner
)
32 testRunner
.notifyDone()
36 <body onload=
"load()"></body>