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

Unified Diff: LayoutTests/fullscreen/full-screen-min-max-width-height-video.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
Index: LayoutTests/fullscreen/full-screen-min-max-width-height-video.html
diff --git a/LayoutTests/fullscreen/full-screen-min-max-width-height-video.html b/LayoutTests/fullscreen/full-screen-min-max-width-height-video.html
new file mode 100644
index 0000000000000000000000000000000000000000..ac80ee460686aaaf9dbb069973eb190ab91778cc
--- /dev/null
+++ b/LayoutTests/fullscreen/full-screen-min-max-width-height-video.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<script src="full-screen-test.js"></script>
+<title>User-agent style sheet for video width/height</title>
+<style>
+video {
+ min-width: 50% !important;
+ max-width: 50% !important;
+ min-height: 50% !important;
+ max-height: 50% !important;
+ width: 50% !important;
+ height: 50% !important;
+}
+</style>
+<video></video>
+<script>
+video = document.querySelector('video');
+
+waitForEventAndEnd(document, 'webkitfullscreenchange', function()
+{
+ computedStyle = getComputedStyle(video);
+ 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()
+{
+ video.webkitRequestFullscreen();
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698