4 applet, embed, object { display: block; margin: 10px; }
7 <!-- These should appear as green blocks of various sizes (200x150, 300x100, 200x100). -->
8 <applet code="DoesNotExist.class" width="200"></applet>
9 <embed type="application/x-fake-plugin" height="100"></embed>
10 <object type="application/x-fake-plugin" width="200" height="100"></object>
12 <template id="placeholder-template">
14 :host { overflow: hidden }
15 div { margin: 0; padding: 0; width: 100%; height: 100%; background-color: green; }
21 internals.settings.setJavaEnabled(true);
23 var templateContent = document.getElementById('placeholder-template').content;
24 Array.prototype.forEach.call(document.querySelectorAll("applet, embed, object"), function(plugin) {
25 internals.forcePluginPlaceholder(plugin, templateContent);