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

Unified Diff: LayoutTests/fullscreen/rendering/ua-style-override-iframe.html

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/full-screen-iframe-zIndex-expected.html ('k') | Source/core/css/fullscreen.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fullscreen/rendering/ua-style-override-iframe.html
diff --git a/LayoutTests/fullscreen/rendering/ua-style-override-iframe.html b/LayoutTests/fullscreen/rendering/ua-style-override-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..4af8ba05b0cded59f7b91468fd30cc3446655a93
--- /dev/null
+++ b/LayoutTests/fullscreen/rendering/ua-style-override-iframe.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<title>Fullscreen UA style sheet cannot be overriden by author style for iframes</title>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../trusted-event.js"></script>
+<style>
+iframe {
+ border: 10px solid red !important;
+ padding: 10px !important;
+}
+</style>
+<div id="log"></div>
+<iframe></iframe>
+<script>
+async_test(function()
+{
+ var iframe = document.querySelector("iframe");
+
+ // Initial style is from inline stylesheet.
+ var style = getComputedStyle(iframe);
+ assert_equals(style.border, "10px solid rgb(255, 0, 0)");
+ assert_equals(style.padding, "10px");
+
+ document.addEventListener("fullscreenchange", this.step_func_done(function()
+ {
+ // The Fullscreen UA style sheet removes border and padding.
+ var style = getComputedStyle(iframe);
+ assert_equals(style.border, "0px none rgb(0, 0, 0)");
+ assert_equals(style.padding, "0px");
+ }));
+
+ trusted_request(iframe);
+});
+</script>
« no previous file with comments | « LayoutTests/fullscreen/full-screen-iframe-zIndex-expected.html ('k') | Source/core/css/fullscreen.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698