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

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

Issue 974783002: Match the Fullscreen spec's CSS as far as currently practical (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: disambiguate Fullscreen UA style sheet 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: LayoutTests/fullscreen/rendering/ua-style-iframe-border.html
diff --git a/LayoutTests/fullscreen/rendering/ua-style-iframe-border.html b/LayoutTests/fullscreen/rendering/ua-style-iframe-border.html
new file mode 100644
index 0000000000000000000000000000000000000000..6ef676a2e70f8ab8f56e9b8a2cfee314c18232e4
--- /dev/null
+++ b/LayoutTests/fullscreen/rendering/ua-style-iframe-border.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<title>Fullscreen UA style sheet removes iframe border</title>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../trusted-event.js"></script>
+<div id="log"></div>
+<iframe></iframe>
+<script>
+async_test(function()
+{
+ var iframe = document.querySelector("iframe");
+
+ // The HTML UA style sheet gives iframe a border.
+ // https://html.spec.whatwg.org/#embedded-content-rendering-rules
+ assert_equals(getComputedStyle(iframe).borderStyle, "inset");
+
+ document.addEventListener("fullscreenchange", this.step_func_done(function()
+ {
+ // The Fullscreen UA style sheet removes the iframe border.
+ assert_equals(getComputedStyle(iframe).borderStyle, "none");
+ }));
+
+ trusted_request(iframe);
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698