window.innerWidth vs document.documentElement.clientWidth
问题 Regarding window.innerWidth and document.documentElement.clientWidth , Webkit (Chrome / Safari) claims innerWidth is smaller than clientWidth . Trident and Presto claim innerWidth is bigger than clientWidth . Gecko claims innerWidth is the same size as clientWidth . What is the correct behavior stated by W3C (or silimar "authority")? Test Script (on JSFiddle) (on GoogleHost): setInterval(function() { var inner_w = window.innerWidth; var inner_h = window.innerHeight; var client_w = document