* 仕様書

[REFS[
- [1] [CITE@en-US[Fullscreen API Standard]] ([TIME[2014-10-15 04:04:50 +09:00]] 版) <https://fullscreen.spec.whatwg.org/>
- [36] [CITE@en[Pointer Lock]] ([TIME[2016-10-19 08:10:29 +09:00]]) <https://w3c.github.io/pointerlock/#dfn-default-unlock-gesture>
]REFS]

* 全画面手順

[21] [DFN[[RUBYB[全画面手順の実行]@en[run the fullscreen steps]]]]

* 利用者インターフェイス

[37] [[固定状態]]を終了させる [[default unlock gesture]]
は、[[全画面]]の終了と同じ操作とすることが推奨されています [SRC[>>36]]。

[43] [[キオスクモード]]も参照。

* 実装

[70] 
[[Safari]] は [[Mac]] と [[iPad]] では対応していますが、
[[iPhone]] では対応していません。

* 歴史

[REFS[
- [1] [CITE@en-US[Fullscreen]]
([TIME[2011-10-15 15:52:09 +09:00]] 版)
<http://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html>
- [2] [CITE['''['''whatwg''']''' Fullscreen]]
([TIME[2011-10-04 01:52:31 +09:00]] 版)
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2011-October/033385.html>
- [3] [CITE['''['''whatwg''']''' Fullscreen]]
([TIME[2011-10-15 13:27:38 +09:00]] 版)
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2011-October/033502.html>
]REFS]

[4] 2012年4月5日に Editor's Draft から Living Standard になりました。
名称が Fullscreen から Fullscreen Standard になりました。

[5] 2012年4月26日に [[WHATCG]] 付きになり、ライセンスが [[CC0]] から [[W3C]] [[CLA]]
に、状態が Living Standard から Living Specification になりました。
名称が Fullscreen Standard から Fullscreen に戻りました。

;; [6] それまでは [[W3C]] の [[Mercurial]] で管理されていましたが、 [[W3C]]
の文書ではありませんでした。

;; [7] この時 [[W3C]] ロゴが付きましたが、 [[CSS]] は [[W3C]] の青色のものではなく、
[[WHATWG]] の緑色のもののままです。

[8] [CITE@en[Contributions by Opera]]
( ([[Anne van Kesteren]] 著, [TIME[2012-04-27 13:50:55 +09:00]] 版))
<http://lists.w3.org/Archives/Public/public-whatwg-contrib/2012Apr/0008.html>

[9] [CITE[IRC logs: freenode / #whatwg / 20120424]]
( ([TIME[2012-05-02 15:41:14 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20120424>

[10] [CITE[IRC logs: freenode / #whatwg / 20120513]]
( ([TIME[2012-05-18 00:02:28 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20120513>

[11] [CITE[IRC logs: freenode / #whatwg / 20120603]]
( ([TIME[2012-06-23 13:56:41 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20120603>

[12] [CITE@en-US[Fullscreen]]
( ([TIME[2012-06-29 01:44:05 +09:00]] 版))
<http://www.w3.org/TR/2012/WD-fullscreen-20120703/>

[13] [CITE[IRC logs: freenode / #whatwg / 20120726]]
( ([TIME[2012-08-02 21:01:50 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20120726#l-175>

[14] [CITE[IRC logs: freenode / #whatwg / 20120906]]
( ([TIME[2012-09-10 01:19:55 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20120906#l-839>

[15] [CITE@en-US[Fullscreen Standard]]
( ([TIME[2012-09-13 19:09:36 +09:00]] 版))
<http://fullscreen.spec.whatwg.org/>

[16] [CITE[IRC logs: freenode / #whatwg / 20130305]]
( ([TIME[2013-03-12 20:47:52 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20130305>

[17] [CITE@en[743198 – Unprefix the DOM fullscreen API]]
( ([TIME[2013-11-23 13:18:03 +09:00]] 版))
<https://bugzilla.mozilla.org/show_bug.cgi?id=743198>

[18] [CITE@en[''''''[''''''CSSWG'''''']'''''' Minutes Sophia-Antipolis F2F 2014-09-10 Part V: Survey of All  the Specs]]
( ([[Dael Jackson]] 著, [TIME[2014-10-16 03:52:20 +09:00]] 版))
<http://lists.w3.org/Archives/Public/www-style/2014Oct/0295.html>

[19] [CITE[IRC logs: freenode / #whatwg / 20141022]]
( ([TIME[2014-10-23 01:29:37 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20141022#l-557>

[20] [CITE@en[Fullscreen]]
( ([TIME[2014-11-17 17:20:36 +09:00]] 版))
<http://www.w3.org/TR/2014/NOTE-fullscreen-20141118/>

[22] [CITE@en[Web Applications 1.0 r8849  Flesh out how rendering happens in the event loop. This also defines requestAnimationFrame() and obsoletes the 'Timing control for script-based animations' spec (by request of that spec's editors)]] ([TIME[2014-11-20 06:56:00 +09:00]] 版) <https://html5.org/r/8849>


[FIG(quote)[
[FIGCAPTION[
[23] [CITE[Intent to deprecate: Insecure usage of powerful features - Google グループ]]
([TIME[2015-02-28 11:15:08 +09:00]] 版)
<https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/2LXKVWYkOus>
]FIGCAPTION]

> We want to start applying the concepts in https://w3c.github.io/webappsec/specs/powerfulfeatures/ to features that have already shipped and which do not meet the (new, not present at the time) requirements. 

]FIG]


[24] [CITE@en[Remove the fullscreen element stack in favor of top layer + fullscree… · whatwg/fullscreen@0b7c994]]
([TIME[2015-07-03 12:03:13 +09:00]] 版)
<https://github.com/whatwg/fullscreen/commit/0b7c994bfcedb291cb9ab7398b26cb4a575470d1>

[25] [CITE@en[Add a playsinline attribute to <video>]]
( ([[domenic]]著, [TIME[2016-06-22 00:23:02 +09:00]]))
<https://github.com/whatwg/html/commit/6e17d01489060988451fc6607089ef4e2d00bbfa>

[FIG(quote)[
[FIGCAPTION[
[26] [CITE@en[Add equivalent of webkit-playsinline attribute to <video> · Issue #1237 · whatwg/html]]
( ([TIME[2016-06-22 20:22:31 +09:00]]))
<https://github.com/whatwg/html/issues/1237>
]FIGCAPTION]

> It would be simpler if we could default all video to be non-fullscreen on iPhones but we don't think that is viable for compatibility reasons, since some sites serve iPhone-specific content with video players that lack controls, on the expectation that video will be fullscreen.

]FIG]


[27] [CITE[Fullscreen with out-of-process iframes - Google ドキュメント]]
([TIME[2016-07-10 15:12:03 +09:00]])
<https://docs.google.com/document/d/1PkpVsDiGlpsGv4vbViHoa2zmzrjCWSy2ASwGl3KR0FE/edit?pref=2&pli=1#heading=h.mehmujl36wmx>

[28] [CITE@en[Remove HTML iframe ancestor check]]
([[annevk]]著, [TIME[2016-07-20 14:15:33 +09:00]])
<https://github.com/whatwg/fullscreen/commit/9592913bbeca3a9d029274f310eb27ad8003622c>

[29] [CITE@en[Editorial: convert to bikeshed]]
([[foolip]]著, [TIME[2016-09-14 18:37:52 +09:00]])
<https://github.com/whatwg/fullscreen/commit/f9df3ea73f1f32490699e0a925d7e0822c2084a1>

[30] [CITE@en[Remove redundant recursive step of fullscreen element ready check (#52)]]
([[foolip]]著, [TIME[2016-09-15 23:30:40 +09:00]])
<https://github.com/whatwg/fullscreen/commit/484ca40c65fc45ab9196336090918a956554191d>

[31] [CITE@en[Editorial: remove document as argument from fullscreen/unfullscreen]]
([[TakayoshiKochi]]著, [TIME[2016-09-16 22:21:05 +09:00]])
<https://github.com/whatwg/fullscreen/commit/c1a9238a2e3f199729cbe4d4fa2b97f9bf754d1f>

[32] [CITE@ja[PHOTO METI PROJECT]]
([TIME[2016-08-17 15:09:39 +09:00]])
<https://photo.kankouyohou.com/>

[33] >>32 [[スペース]]の[[押下]]で突然[[全画面表示]]になります。 (とてもうざい。)

[34] [CITE@en[Move the element type check out of the ready check]]
([[foolip]]著, [TIME[2016-09-27 21:51:44 +09:00]])
<https://github.com/whatwg/fullscreen/commit/b5fe5324f217b5155ebb6dde72d2fdc6d97b6264>

[35] [CITE@en[Make Fullscreen work with shadow trees]]
([[TakayoshiKochi]]著, [TIME[2016-10-01 02:14:38 +09:00]])
<https://github.com/whatwg/fullscreen/commit/611a4046b0569752d198093e36edd736851877a6>

[FIG(quote)[
[FIGCAPTION[
[38] [CITE@ja[Web ビュー]]
([[Jwmsft]]著, [TIME[2017-01-20 14:47:32 +09:00]])
<https://msdn.microsoft.com/ja-jp/windows/uwp/controls-and-patterns/web-view>
]FIGCAPTION]

> ContainsFullScreenElement プロパティと ContainsFullScreenElementChanged イベントを使うと、全画面での動画の再生といった、全画面表示を可能にしたり、検出したり、または処理したりすることができます。

]FIG]


[39] [CITE@en[fullscreen window: use document element to fullscreen by element]]
([[andreastt]]著, [TIME[2017-01-20 21:55:53 +09:00]])
<https://github.com/w3c/webdriver/commit/d35fd0835bf1de17dcf8dc86698aa5c7e49b4547>

[40] [CITE@en[Meta: update spec deploy and editing infrastructure]]
([[annevk]]著, [TIME[2017-02-15 19:42:03 +09:00]])
<https://github.com/whatwg/fullscreen/commit/0e1703382fae5b2da567244c663c185c7c383577>

[41] [CITE@en[Meta: enable PR preview]]
([[annevk]]著, [TIME[2017-02-19 02:06:25 +09:00]])
<https://github.com/whatwg/fullscreen/commit/d1d6bdf4007a931a13cbee2c951ada189c181213>

[42] [CITE@en[Change algorithm of "collect documents to unfullscreen"]]
([[upsuper]]著, [TIME[2017-02-24 20:31:14 +09:00]])
<https://github.com/whatwg/fullscreen/commit/40c89470f0b3e5acf675b56578491a5c2ea2d2fe>

[44] [CITE@en[Clarify what "collect documents to unfullscreen" returns]]
([[foolip]]著, [TIME[2017-05-10 21:33:19 +09:00]])
<https://github.com/whatwg/fullscreen/commit/0a4787af0baaab9ed181bdff015641037f4e1013>

[45] [CITE@en[Fullscreen/unfullscreen ASAP; fire events at animation frame timing]]
([[foolip]]著, [TIME[2017-06-15 17:48:13 +09:00]])
<https://github.com/whatwg/fullscreen/commit/4208e5a98c78d716f664a85749fba6d4eb2822f2>

[46] [CITE@en[Editorial: rename "run the fullscreen rendering steps" and add note]]
([[foolip]]著, [TIME[2017-06-15 21:40:56 +09:00]])
<https://github.com/whatwg/fullscreen/commit/4ad4ab068d5f7367bb95490e31c025ee1f3f40dd>

[47] [CITE@en[Link to "run the fullscreen steps" in Fullscreen]]
([[foolip]]著, [TIME[2017-06-15 21:43:09 +09:00]])
<https://github.com/whatwg/html/commit/7c2b5dcbfd27d2727eaeeb504faa654d3d8cc8f8>

[48] [CITE@en[Editorial: rename "run the fullscreen rendering steps" and add note]]
([[foolip]]著, [TIME[2017-06-15 21:40:56 +09:00]])
<https://github.com/whatwg/fullscreen/commit/4ad4ab068d5f7367bb95490e31c025ee1f3f40dd>

[49] [CITE@en[Let the user agent end fullscreen unilaterally]]
([[avidrissman]]著, [TIME[2017-08-03 17:12:53 +09:00]])
<https://github.com/whatwg/fullscreen/commit/2596c331b9145b5610b9efca1fb24a4c21d972e5>

[50] [CITE@en[User agent needs latitude to end fullscreen when needed · Issue #93 · whatwg/fullscreen]]
([TIME[2017-08-04 13:43:15 +09:00]])
<https://github.com/whatwg/fullscreen/issues/93>

[51] [CITE@en[Let the UA end fullscreen unilaterally. by avidrissman · Pull Request #95 · whatwg/fullscreen]]
([TIME[2017-08-04 13:44:16 +09:00]])
<https://github.com/whatwg/fullscreen/pull/95>

[52] [CITE@en[Reinstate the hierarchy restrictions by foolip · Pull Request #91 · whatwg/fullscreen]]
([TIME[2017-09-29 15:18:12 +09:00]])
<https://github.com/whatwg/fullscreen/pull/91>

[53] [CITE@en[Meta: use new WHATWG boilerplate and license]]
([[domenic]]著, [TIME[2018-01-04 08:46:12 +09:00]])
<https://github.com/whatwg/fullscreen/commit/f434c9d7a33f46ef7749a654aafd333f003edcc9>

[54] [CITE@en[Meta: use new WHATWG boilerplate and license by domenic · Pull Request #113 · whatwg/fullscreen]]
([TIME[2018-01-07 13:38:12 +09:00]])
<https://github.com/whatwg/fullscreen/pull/113>

[55] [CITE@en[Meta: make Philip the editor]]
([[foolip]]著, [TIME[2018-01-30 17:47:19 +09:00]])
<https://github.com/whatwg/fullscreen/commit/8bbb8a0aba0cd5da5adebec6e1c7cd3e96c82518>

[56] [CITE@en[Meta: make Philip the editor by foolip · Pull Request #121 · whatwg/fullscreen]]
([TIME[2018-02-02 14:26:53 +09:00]])
<https://github.com/whatwg/fullscreen/pull/121>

[57] [CITE@en[Make Philip the editor of Fullscreen by foolip · Pull Request #60 · whatwg/sg]]
([TIME[2018-02-02 14:27:11 +09:00]])
<https://github.com/whatwg/sg/pull/60>

[58] [CITE@en[Appoint Philip Jägenstedt as the editor for Fullscreen · Issue #61 · whatwg/sg]]
([TIME[2018-02-02 14:27:56 +09:00]])
<https://github.com/whatwg/sg/issues/61>

[59] [CITE@en[Update Fullscreen "authors" in biblio.json]]
([[foolip]]著, [TIME[2018-01-30 17:30:49 +09:00]])
<https://github.com/whatwg/whatwg.org/commit/02622d80b9c8890e32686f5eccbf4911d0b61d4e>

[60] [CITE@en[Update Fullscreen "authors" in biblio.json by foolip · Pull Request #183 · whatwg/whatwg.org]]
([TIME[2018-02-21 10:23:48 +09:00]])
<https://github.com/whatwg/whatwg.org/pull/183>

[61] [CITE@en[Review Draft Publication: January 2019]]
([[annevk]]著, [TIME[2019-01-23 20:23:01 +09:00]])
<https://github.com/whatwg/fullscreen/commit/7ecd70946501abb8692bbf8ce72fa2b8d3ccf3ac>

[62] [CITE@en[Review Draft Publication: January 2019 by annevk · Pull Request #143 · whatwg/fullscreen]]
([TIME[2019-06-03 20:25:05 +09:00]])
<https://github.com/whatwg/fullscreen/pull/143>

[63] [CITE@en[Fullscreen API Standard Review Draft January 2019]]
([TIME[2019-01-23 22:52:21 +09:00]])
<https://fullscreen.spec.whatwg.org/review-drafts/2019-01/>

[64] [CITE@en[Fix logical error of filling fullscreenElements (3.12) (#145)]]
([[ChangWanHong]]著, [TIME[2019-02-25 22:57:36 +09:00]])
<https://github.com/whatwg/fullscreen/commit/d2e9d66f9830480182e74fe9c7225759acba3200>

[65] [CITE@en[Fix logical error of filling fullscreenElements (3.12) by ChangWanHong · Pull Request #145 · whatwg/fullscreen]]
([TIME[2019-07-15 20:33:37 +09:00]])
<https://github.com/whatwg/fullscreen/pull/145>

[66] [CITE@en[Rephrase: 3.12 While the first element in fullscreenElements is ... · Issue #144 · whatwg/fullscreen]]
([TIME[2019-07-15 20:33:59 +09:00]])
<https://github.com/whatwg/fullscreen/issues/144>

[67] [CITE@en[Review Draft Publication: July 2019]]
([[annevk]]著, [TIME[2019-07-16 18:13:37 +09:00]])
<https://github.com/whatwg/fullscreen/commit/eedfcc083d8e75701425b22076d7a92bb55cbc01>

[68] [CITE@en[Review Draft Publication: July 2019 by annevk · Pull Request #155 · whatwg/fullscreen]]
([TIME[2020-01-12 16:25:42 +09:00]])
<https://github.com/whatwg/fullscreen/pull/155>

[69] [CITE@en[Fullscreen API Standard Review Draft July 2019]]
([TIME[2019-07-16 18:31:41 +09:00]])
<https://fullscreen.spec.whatwg.org/review-drafts/2019-07/>