resize

resize

仕様書

サイズ変更手順

[13] サイズ変更手順 >>12

歴史

[1] + JavaScript の質問用スレッド vol.68 + <http://pc11.2ch.net/test/read.cgi/hp/1230611894/674>

Netscape4系は、Document.write()とかした内容をキャッシュに保持してた。

その際の文字コードがソースの文字コードに依存しなかったことと、 ウィンドウをリサイズするとキャッシュを読み直すというイミフな仕様が相まって、 リサイズすると盛大に文字化け、タグが巻き添えになって画面がぼろぼろになった。

キャッシュの文字化けが原因、という結論になかなかたどり着けなかった当時の 多くのJS書きは、 window.onresize = function(){ self = top /* reload()は怖いので避けた */ }; といったことをおまじないのごとく書いて、cgiを叩くようなページでは難儀した。 98~02年頃の話。

[2] windown の resize イベント - 8時40分が超えられない - subtech ( 版) <http://subtech.g.hatena.ne.jp/secondlife/20090121/1232515730>

IEにはウィンドウサイズが変化したときに発生するresizeイベントとbody要素の大きさが変化したときに発生するresizeイベントがあって、body要素の大きさがむやみに変わらないようCSSで指定したりすればresizeイベントによる無限ループを避けられたような気がします。

と思ってMSDN Libraryを見たらもっと多くの場所で発生するみたいです。 <http://msdn.microsoft.com/en-us/library/ms536959.aspx>

[3] IRC logs: freenode / #whatwg / 20090908 ( 版) <http://krijnhoetmer.nl/irc-logs/whatwg/20090908#l-694>

[4] Web Applications 1.0 r8354 Move onresize from just Window to Window and elements, since <video> now uses it ( ( 版)) <http://html5.org/tools/web-apps-tracker?from=8353&to=8354>

[5] Web Applications 1.0 r8354 Move onresize from just Window to Window and elements, since <video> now uses it ( ( 版)) <http://html5.org/tools/web-apps-tracker?from=8353&to=8354>

[6] Web Applications 1.0 r8354 Move onresize from just Window to Window and elements, since <video> now uses it ( ( 版)) <http://html5.org/tools/web-apps-tracker?from=8353&to=8354>

[6] IRC logs: freenode / #whatwg / 20121127 ( ( 版)) <http://krijnhoetmer.nl/irc-logs/whatwg/20121127#l-728>

[7] Web Applications 1.0 r8347 Add a 'resize' event to <video> elements for when the video data changes dimensions. ( ( 版)) <http://html5.org/tools/web-apps-tracker?from=8346&to=8347>

[8] [whatwg] Reporting mid-stream resolution change on <video> ( ( 版)) <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2013-December/041773.html>

[9] Web Applications 1.0 r8364 Fire a 'resize' event when loading a video, too. ( ( 版)) <http://html5.org/tools/web-apps-tracker?from=8363&to=8364>

[10] Web Applications 1.0 r8385 Add an event index which acts as the definition of the event names, for editorial purposes (event names are really just strings, so they don't have, or need, a normative definition per se). ( ( 版)) <http://html5.org/tools/web-apps-tracker?from=8384&to=8385>

[11] Web Applications 1.0 r8386 Turns out CSSOM already specifies resize and scroll events. Sweet. ( ( 版)) <http://html5.org/tools/web-apps-tracker?from=8385&to=8386>

[14] 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) ( 版) <https://html5.org/r/8849>

[15] csswg: changeset 14799:1e907e3ac50c ( 版) <https://dvcs.w3.org/hg/csswg/rev/1e907e3ac50cf28bb21750d49d1229195e79d33c>

[16] Add a note for UAs when to re-run environment changed algo. Fixes #228 · a39c059 · ResponsiveImagesCG/picture-element ( 版) <https://github.com/ResponsiveImagesCG/picture-element/commit/a39c05968e80bd3e0f88ee849cd08b42a81d4acf>

[17] Re: 'scroll' and 'resize' events (William Edney 著, 版) <https://lists.w3.org/Archives/Public/public-webapps/2009AprJun/1061.html>

[18] [whatwg] "resize" events on elements (Dean Jackson 著, 版) <https://lists.w3.org/Archives/Public/public-whatwg-archive/2015Feb/0037.html>

[19] ウィンドウのサイズを変えていないのに window.resize イベントが発生する | infoScoop開発者ブログ ( 版) <http://www.infoscoop.org/blogjp/2015/02/27/ie8-window-resize/>

IE8で、ウィンドウの大きさを変えていないのに window.resize イベントが発生することがあります。

[20] 1149555 – Update resize event firing to follow the specs ( 版) <https://bugzilla.mozilla.org/show_bug.cgi?id=1149555>

[21] Issue 472247 - chromium - Match the spec for order of resize event and requestAnimationFrame - An open-source project to help move the web forward. - Google Project Hosting ( 版) <https://code.google.com/p/chromium/issues/detail?id=472247>

[22] IRC logs: freenode / #whatwg / 20150331 ( 版) <http://krijnhoetmer.nl/irc-logs/whatwg/20150331>

[23] Fix #76: remove resize event · w3c/uievents@ea3cc33 ( 版) <https://github.com/w3c/uievents/commit/ea3cc33137e243b71e93052ac11f4b49e5cbc2ff>

[24] レスポンシブデザインのために resize イベントを使うのはやめて matchMedia メソッドを使おう - ひだまりソケットは壊れない () <http://vividcode.hatenablog.com/entry/js/match-media-method>

[25] Mobile Safari<html><template><p onresize></template> でクラッシュするんだけどいったいどういう仕組みなんだろうか。