Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / nested-plugins.html
blobd1cd95320ec59df92da2fd329b7a3a3ff00c69ed
1 <script>
2 function toggleDisplay(element, button)
4 if (element.style.display == "none")
5 element.style.display = "";
6 else
7 element.style.display = "none";
10 function toggleVisibility(element, button)
12 if (element.style.visibility == "hidden")
13 element.style.visibility = "";
14 else
15 element.style.visibility = "hidden";
18 </script>
19 <p>
20 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
21 non-displaying ancestor, and that making an ancestor visible and displaying shows only its descendants the are visible and displaying.
22 </p>
23 <table>
24 <tr>
25 <td>
26 <input type="checkbox" checked="true" onclick="toggleDisplay(document.getElementById('middle'))"> Outer frame display
27 </td>
28 <td>
29 <input type="checkbox" checked="true" onclick="toggleDisplay(document.getElementById('middle').contentDocument.getElementById('inner'))"> Inner frame display
30 </td>
31 </tr>
32 <tr>
33 <td>
34 <input type="checkbox" checked="true" onclick="toggleVisibility(document.getElementById('middle'))"> Outer frame visibility
35 </td>
36 <td>
37 <input type="checkbox" checked="true" onclick="toggleVisibility(document.getElementById('middle').contentDocument.getElementById('inner'))"> Inner frame visibility
38 </td>
39 <td>
40 <input type="checkbox" checked="true" onclick="toggleVisibility(document.getElementById('middle').contentDocument.getElementById('inner').contentDocument.getElementById('plugin'))"> Inner plugin visibility
41 </td>
42 </tr>
43 </table>
45 <iframe id="middle" style="height: 400px; width: 400px;" src="resources/nested-plugins-outer-frame.html"></iframe>