3 <iframe srcdoc=
"<html style='display: none'>Foo"></iframe>
5 <iframe id=
"doc"></iframe>
8 // Test display:none on a non-HTMLElement that is the documentElement.
9 var doc
= document
.getElementById('doc').contentDocument
;
10 var root
= doc
.implementation
.createDocument().createElement('not-a-real-element');
11 doc
.replaceChild(root
, doc
.documentElement
);
12 root
.appendChild(document
.createElement('style')).textContent
= 'not-a-real-element { display: none }';
13 root
.appendChild(document
.createElement('p')).textContent
= 'Should not be visible';