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

Unified Diff: components/dom_distiller/core/css/distilledpage.css

Issue 880983007: Iframe placeholders, security and resizing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 8 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: components/dom_distiller/core/css/distilledpage.css
diff --git a/components/dom_distiller/core/css/distilledpage.css b/components/dom_distiller/core/css/distilledpage.css
index f14b2bd46217bb88dbf804006a40eaa641ab5ad6..e563d194a9e71d8b4e90d1163b3b93df3ffbebb6 100644
--- a/components/dom_distiller/core/css/distilledpage.css
+++ b/components/dom_distiller/core/css/distilledpage.css
@@ -345,6 +345,23 @@ pre {
}
}
+/* Iframe sizing. */
+.youtubeContainer {
+ height: 0px;
+ /* This is the perecnt height of a standard HD video. */
+ padding-bottom: 56.25%;
+ position: relative;
+ width: 100%;
+}
+
+.youtubeIframe {
+ height: 100%;
+ left: 0px;
+ position: absolute;
+ top: 0px;
+ width: 100%;
+}
+
/* Loading Indicator. */
#loader {
height: 22px;

Powered by Google App Engine
This is Rietveld 408576698