Regression(r188105): Seems to have caused crashes during PLT on some iPads
[WebKit-https.git] / LayoutTests / fast / css / display-none-documentElement.html
1 <!DOCTYPE html>
2
3 <iframe srcdoc="<html style='display: none'>Foo"></iframe>
4
5 <iframe id="doc"></iframe>
6
7 <script>
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';
14 </script>