summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests/nested-plug-ins.html
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:30:52 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:30:52 -0800
commit8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2 (patch)
tree11425ea0b299d6fb89c6d3618a22d97d5bf68d0f /WebCore/manual-tests/nested-plug-ins.html
parent648161bb0edfc3d43db63caed5cc5213bc6cb78f (diff)
downloadexternal_webkit-8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2.zip
external_webkit-8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2.tar.gz
external_webkit-8e35f3cfc7fba1d1c829dc557ebad6409cbe16a2.tar.bz2
auto import from //depot/cupcake/@135843
Diffstat (limited to 'WebCore/manual-tests/nested-plug-ins.html')
-rw-r--r--WebCore/manual-tests/nested-plug-ins.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/WebCore/manual-tests/nested-plug-ins.html b/WebCore/manual-tests/nested-plug-ins.html
new file mode 100644
index 0000000..20a11fa
--- /dev/null
+++ b/WebCore/manual-tests/nested-plug-ins.html
@@ -0,0 +1,45 @@
+<script>
+ function toggleDisplay(element, button)
+ {
+ if (element.style.display == "none")
+ element.style.display = "";
+ else
+ element.style.display = "none";
+ }
+
+ function toggleVisibility(element, button)
+ {
+ if (element.style.visibility == "hidden")
+ element.style.visibility = "";
+ else
+ element.style.visibility = "hidden";
+ }
+
+</script>
+<p>
+ Play with the display and visibility toggles. Make sure that turning an inner element visible does not show it if it has a hidden or
+ non-displaying ancestor, and that making an ancestor visible and displaying shows only its descendants the are visible and displaying.
+</p>
+<table>
+ <tr>
+ <td>
+ <input type="checkbox" checked="true" onclick="toggleDisplay(document.getElementById('middle'))"> Outer frame display
+ </td>
+ <td>
+ <input type="checkbox" checked="true" onclick="toggleDisplay(document.getElementById('middle').contentDocument.getElementById('inner'))"> Inner frame display
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <input type="checkbox" checked="true" onclick="toggleVisibility(document.getElementById('middle'))"> Outer frame visibility
+ </td>
+ <td>
+ <input type="checkbox" checked="true" onclick="toggleVisibility(document.getElementById('middle').contentDocument.getElementById('inner'))"> Inner frame visibility
+ </td>
+ <td>
+ <input type="checkbox" checked="true" onclick="toggleVisibility(document.getElementById('middle').contentDocument.getElementById('inner').contentDocument.getElementById('plugin'))"> Inner plug-in visibility
+ </td>
+ </tr>
+</table>
+
+<iframe id="middle" style="height: 400px; width: 400px;" src="resources/nested-plug-ins-outer-frame.html"></iframe>