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

Unified Diff: chrome/renderer/resources/plugin_placeholders.css

Issue 1085993003: Plugin Power Saver: Make posters work right when image is 404 Not Found. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0263-plugin-power-saver-heuristic-tests
Patch Set: 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: chrome/renderer/resources/plugin_placeholders.css
diff --git a/chrome/renderer/resources/plugin_placeholders.css b/chrome/renderer/resources/plugin_placeholders.css
index 4bd5fd9ec16dacdb2780beb14c5ad5a9658c3ce2..cae0362dd6c711891e6e0d7eaa90828ff51457b1 100644
--- a/chrome/renderer/resources/plugin_placeholders.css
+++ b/chrome/renderer/resources/plugin_placeholders.css
@@ -2,12 +2,14 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
-body {
+html, body {
+ -webkit-user-select: none;
font-family: sans-serif;
+ height: 100%;
margin: 0;
overflow: hidden;
text-align: center;
- -webkit-user-select: none;
+ width: 100%;
}
h1 {
@@ -37,33 +39,33 @@ p {
}
#inner {
- position: relative;
height: 100%;
- width: 100%;
- top: 50%;
<if expr="not is_android">
margin-top: -70px;
</if>
<if expr="is_android">
margin-top: -14px;
</if>
+ position: relative;
+ top: 50%;
+ width: 100%;
}
#close {
-<if expr="not is_android">
- visibility: hidden;
-</if>
- cursor: pointer;
- position: absolute;
- right: 3px;
- top: 3px;
- height: 14px;
- width: 14px;
background-image: -webkit-image-set(
url(../../../ui/resources/default_100_percent/close_2.png) 1x,
url(../../../ui/resources/default_200_percent/close_2.png) 2x);
background-position: right top;
background-repeat: no-repeat;
+ cursor: pointer;
+ height: 14px;
+ position: absolute;
+ right: 3px;
+ top: 3px;
+<if expr="not is_android">
+ visibility: hidden;
+</if>
+ width: 14px;
}
#close:hover {
« no previous file with comments | « chrome/browser/plugins/plugin_power_saver_browsertest.cc ('k') | chrome/renderer/resources/plugin_poster.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698