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

Side by Side 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, 4 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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;
12 }
13 </style>
14 <iframe></iframe>
15 <script>
16 iframe = document.querySelector('iframe');
17
18 waitForEventAndEnd(document, 'webkitfullscreenchange', function()
19 {
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 });
28
29 runWithKeyDown(function()
30 {
31 iframe.webkitRequestFullscreen();
32 });
33 </script>
OLDNEW
« 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