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

Unified Diff: LayoutTests/fullscreen/full-screen-min-max-width-height-iframe.html

Issue 432323002: Add min-width/max-width/min-height/max-height to the fullscreen UA style sheet (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « no previous file | LayoutTests/fullscreen/full-screen-min-max-width-height-iframe-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fullscreen/full-screen-min-max-width-height-iframe.html
diff --git a/LayoutTests/fullscreen/full-screen-min-max-width-height-iframe.html b/LayoutTests/fullscreen/full-screen-min-max-width-height-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..ac4f953dc8558c841e07efcf04e9c5aef02dedc8
--- /dev/null
+++ b/LayoutTests/fullscreen/full-screen-min-max-width-height-iframe.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<script src="full-screen-test.js"></script>
+<title>User-agent style sheet for iframe width/height</title>
+<style>
+iframe {
+ min-width: 50% !important;
+ max-width: 50% !important;
+ min-height: 50% !important;
+ max-height: 50% !important;
+ width: 50% !important;
+ height: 50% !important;
+}
+</style>
+<iframe></iframe>
+<script>
+iframe = document.querySelector('iframe');
+
+waitForEventAndEnd(document, 'webkitfullscreenchange', function()
+{
+ computedStyle = getComputedStyle(iframe);
+ testExpected('computedStyle.minWidth', '0px');
+ testExpected('computedStyle.maxWidth', 'none');
+ testExpected('computedStyle.minHeight', '0px');
+ testExpected('computedStyle.maxHeight', 'none');
+ testExpected('computedStyle.width', window.innerWidth + 'px');
+ testExpected('computedStyle.height', window.innerHeight + 'px');
+});
+
+runWithKeyDown(function()
+{
+ iframe.webkitRequestFullscreen();
+});
+</script>
« no previous file with comments | « no previous file | LayoutTests/fullscreen/full-screen-min-max-width-height-iframe-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698