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

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: CL Split Created 5 years, 9 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 c34d058dd298cc0ef7d640a426862b981322a7bd..d3cb3c9936587cfe42c7173b190b4e744b99ae96 100644
--- a/components/dom_distiller/core/css/distilledpage.css
+++ b/components/dom_distiller/core/css/distilledpage.css
@@ -274,6 +274,22 @@ pre {
display: none;
}
+/* Iframe sizing. */
+.youtubeContainer {
+ height: 0px;
+ padding-bottom: 60%;
cjhopman 2015/03/19 03:34:47 this is based on the video aspect ratio, right? co
mdjones 2015/03/19 18:08:39 Done.
+ position: relative;
+ width: 100%;
+}
+
+.youtubeIframe {
+ height: 100%;
+ left: 0px;
+ position: absolute;
+ top: 0px;
+ width: 100%;
+}
cjhopman 2015/03/19 03:34:47 Could you add a screenshot to the description so I
mdjones 2015/03/19 18:08:39 Done. See https://code.google.com/p/chromium/issue
+
/* Loading Indicator. */
#loader {
height: 22px;

Powered by Google App Engine
This is Rietveld 408576698