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

Unified Diff: LayoutTests/fast/plugins/plugin-placeholder.css

Issue 516273002: Move plugin placeholder style to CSS, and allow it to bypass main world CSP. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: gn Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/plugins/plugin-placeholder.css
diff --git a/LayoutTests/fast/plugins/plugin-placeholder.css b/LayoutTests/fast/plugins/plugin-placeholder.css
new file mode 100644
index 0000000000000000000000000000000000000000..d69f197cb61d73b712240a5352803a136285c2d5
--- /dev/null
+++ b/LayoutTests/fast/plugins/plugin-placeholder.css
@@ -0,0 +1,20 @@
+.plugin {
+ display: block;
+ width: 300px;
+ height: 150px;
+}
+
+.plugin-placeholder {
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ display: flex;
+ align-items: center;
+ background-color: gray;
+ font: 12px -webkit-control;
+}
+
+.plugin-placeholder-content {
+ text-align: center;
+ margin: auto;
+}
« no previous file with comments | « no previous file | LayoutTests/fast/plugins/plugin-placeholder-csp.html » ('j') | Source/core/dom/StyleElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698