Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / display-none-documentElement.html
blobf8e731d3194ecfe471bb448148d8d606169f9564
1 <!DOCTYPE html>
3 <iframe srcdoc="<html style='display: none'>Foo"></iframe>
5 <iframe id="doc"></iframe>
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>