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

Unified Diff: Source/core/css/fullscreen.css

Issue 1032113002: Remove border and padding from iframes in fullscreen (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « LayoutTests/fullscreen/rendering/ua-style-override-iframe.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/fullscreen.css
diff --git a/Source/core/css/fullscreen.css b/Source/core/css/fullscreen.css
index fb79d5894d43d3ae2ed516dc10546adf68dca7bc..60a0aa02f80298e0aee5377f4f16e98e3cc9712f 100644
--- a/Source/core/css/fullscreen.css
+++ b/Source/core/css/fullscreen.css
@@ -30,6 +30,16 @@ iframe:-webkit-full-screen {
/* Anything below are extensions over what the Fullscreen API mandates. */
+/* The border and padding of fullscreen iframes are removed, as there are sites
+ that set border or padding on iframes with the apparent expectation that they
+ will be ignored in fullscreen (see crbug.com/468292 and crbug.com/469133).
+ TODO(philipj): Remove this or merge into the above block when the spec bug
+ has been resolved: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28332 */
+iframe:-webkit-full-screen {
+ border: none !important;
+ padding: 0 !important;
+}
+
/* FIXME: Remove these rules when moving Fullscreen to top layer.
(see crbug.com/240576) */
:-webkit-full-screen {
« no previous file with comments | « LayoutTests/fullscreen/rendering/ua-style-override-iframe.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698