Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: LayoutTests/fast/plugins/plugin-placeholder.html

Issue 369893006: Allow HTMLPlugInElement to host UA shadow DOM. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/plugins/plugin-placeholder-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2
3 <style>
4 applet, embed, object { display: block; margin: 10px; }
5 </style>
6
7 <!-- These should all appear as 300x150 green blocks. -->
8 <applet code="DoesNotExist.class"></applet>
9 <embed type="application/x-fake-plugin"></embed>
10 <object type="application/x-fake-plugin"></object>
11
12 <script>
13 internals.settings.setJavaEnabled(true);
14
15 var placeholderHTML =
16 '<style>:host { overflow: hidden }</style>' +
17 '<div style="margin: 0; padding: 0; width: 100%; height: 100%; background-co lor: green;"></div>';
18 Array.prototype.forEach.call(document.querySelectorAll("applet, embed, object"), function(plugin) {
19 internals.forcePluginPlaceholder(plugin, placeholderHTML);
20 });
21 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/plugins/plugin-placeholder-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698