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

Unified Diff: third_party/WebKit/LayoutTests/fullscreen/rendering/overflow-root.html

Issue 2202493002: NOT FOR REVIEW: Fullscreen WIP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 1 month 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: third_party/WebKit/LayoutTests/fullscreen/rendering/overflow-root.html
diff --git a/third_party/WebKit/LayoutTests/fullscreen/rendering/overflow-root.html b/third_party/WebKit/LayoutTests/fullscreen/rendering/overflow-root.html
new file mode 100644
index 0000000000000000000000000000000000000000..f76bdacc06009f47840ee1d14d8068ef08830bd4
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fullscreen/rendering/overflow-root.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<title>overflow of root element when root element itself is fullscreen</title>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../trusted-event.js"></script>
+<style>:root { overflow: scroll; }</style>
+<div id="log"></div>
+<script>
+async_test(function()
+{
+ var root = document.documentElement;
+ trusted_request(root, document.body);
+
+ document.addEventListener("fullscreenchange", this.step_func_done(function()
+ {
+ // The scrollbar should remain.
+ assert_equals(getComputedStyle(root).overflow, "scroll");
+ assert_less_than(root.clientWidth, window.innerWidth);
+ }));
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698