Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fullscreen / full-screen-min-max-width-height-iframe.html
blobac4f953dc8558c841e07efcf04e9c5aef02dedc8
1 <!DOCTYPE html>
2 <script src="full-screen-test.js"></script>
3 <title>User-agent style sheet for iframe width/height</title>
4 <style>
5 iframe {
6 min-width: 50% !important;
7 max-width: 50% !important;
8 min-height: 50% !important;
9 max-height: 50% !important;
10 width: 50% !important;
11 height: 50% !important;
13 </style>
14 <iframe></iframe>
15 <script>
16 iframe = document.querySelector('iframe');
18 waitForEventAndEnd(document, 'webkitfullscreenchange', function()
20 computedStyle = getComputedStyle(iframe);
21 testExpected('computedStyle.minWidth', '0px');
22 testExpected('computedStyle.maxWidth', 'none');
23 testExpected('computedStyle.minHeight', '0px');
24 testExpected('computedStyle.maxHeight', 'none');
25 testExpected('computedStyle.width', window.innerWidth + 'px');
26 testExpected('computedStyle.height', window.innerHeight + 'px');
27 });
29 runWithKeyDown(function()
31 iframe.webkitRequestFullscreen();
32 });
33 </script>