3 background-color: pink;
4 -webkit-align-self: stretch;
9 -webkit-writing-mode: vertical-lr;
12 display: inline-block;
16 <script src=
"full-screen-test.js"></script>
18 <div><div class=vertical
>
19 <div class=
"inner">This div becomes a stretched flex item in fullscreen mode, and should
20 become normal-sized again once leaving it.
</div>
21 <div class=
"inner">Number
2</div>
22 <div class=
"inner">Number
3</div>
23 <div class=
"inner">Number
4</div>
27 var fullscreenChanged = function(event
)
32 waitForEvent(document
, 'webkitfullscreenchange', fullscreenChanged
);
34 var div
= document
.getElementsByTagName('div')[0];
35 var oldHeight
= div
.offsetHeight
;
37 var divEnteredFullScreen = function(event
) {
38 callback
= divExitedFullScreen
;
39 document
.webkitExitFullscreen();
42 var divExitedFullScreen = function(event
) {
44 testExpected(div
.offsetHeight
, oldHeight
);
45 div
.innerHTML
= ""; // simplify the text dump
49 callback
= divEnteredFullScreen
;
50 runWithKeyDown(function(){div
.webkitRequestFullScreen()});
52 <button onclick=
"div.webkitRequestFullScreen()">Enter Fullscreen
</button>