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> |