getboundingclientrect.json 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. {
  2. "title":"Element.getBoundingClientRect()",
  3. "description":"Method to get the size and position of an element's bounding box, relative to the viewport.",
  4. "spec":"http://www.w3.org/TR/cssom-view/#dom-element-getboundingclientrect",
  5. "status":"wd",
  6. "links":[
  7. {
  8. "url":"https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect",
  9. "title":"Mozilla Developer Network"
  10. },
  11. {
  12. "url":"https://msdn.microsoft.com/en-us/library/ms536433(VS.85).aspx",
  13. "title":"Microsoft Developer Network"
  14. }
  15. ],
  16. "bugs":[
  17. {
  18. "description":"In IE<=11, calling getBoundingClientRect on an element outside of the DOM throws an unspecified error instead of returning a 0x0 DOMRect. See [IE bug #829392.](https://connect.microsoft.com/IE/feedback/details/829392/calling-getboundingclientrect-on-an-html-element-that-has-not-been-added-to-the-dom-causes-unspecified-error)"
  19. },
  20. {
  21. "description":"Really old versions of Safari and Chrome gave incorrect results for SVG elements. See [Chromium issue #47998.](https://code.google.com/p/chromium/issues/detail?id=47998)"
  22. },
  23. {
  24. "description":"Safari and Chrome give incorrect results for elements that have the nonstandard `zoom` CSS property applied to them. See [WebKit bug #77998.](https://bugs.webkit.org/show_bug.cgi?id=77998)"
  25. }
  26. ],
  27. "categories":[
  28. "JS API"
  29. ],
  30. "stats":{
  31. "ie":{
  32. "5.5":"a #1 #3",
  33. "6":"a #1 #3",
  34. "7":"a #1 #3",
  35. "8":"a #1 #3",
  36. "9":"y",
  37. "10":"y",
  38. "11":"y"
  39. },
  40. "edge":{
  41. "12":"y",
  42. "13":"y",
  43. "14":"y"
  44. },
  45. "firefox":{
  46. "2":"n",
  47. "3":"a #1 #4",
  48. "3.5":"a #2 #4",
  49. "3.6":"a #2 #3 #4",
  50. "4":"a #2",
  51. "5":"a #2",
  52. "6":"a #2",
  53. "7":"a #2",
  54. "8":"a #2",
  55. "9":"a #2",
  56. "10":"a #2",
  57. "11":"a #2",
  58. "12":"y",
  59. "13":"y",
  60. "14":"y",
  61. "15":"y",
  62. "16":"y",
  63. "17":"y",
  64. "18":"y",
  65. "19":"y",
  66. "20":"y",
  67. "21":"y",
  68. "22":"y",
  69. "23":"y",
  70. "24":"y",
  71. "25":"y",
  72. "26":"y",
  73. "27":"y",
  74. "28":"y",
  75. "29":"y",
  76. "30":"y",
  77. "31":"y",
  78. "32":"y",
  79. "33":"y",
  80. "34":"y",
  81. "35":"y",
  82. "36":"y",
  83. "37":"y",
  84. "38":"y",
  85. "39":"y",
  86. "40":"y",
  87. "41":"y",
  88. "42":"y",
  89. "43":"y",
  90. "44":"y",
  91. "45":"y",
  92. "46":"y",
  93. "47":"y",
  94. "48":"y",
  95. "49":"y",
  96. "50":"y",
  97. "51":"y",
  98. "52":"y",
  99. "53":"y"
  100. },
  101. "chrome":{
  102. "4":"y",
  103. "5":"y",
  104. "6":"y",
  105. "7":"y",
  106. "8":"y",
  107. "9":"y",
  108. "10":"y",
  109. "11":"y",
  110. "12":"y",
  111. "13":"y",
  112. "14":"y",
  113. "15":"y",
  114. "16":"y",
  115. "17":"y",
  116. "18":"y",
  117. "19":"y",
  118. "20":"y",
  119. "21":"y",
  120. "22":"y",
  121. "23":"y",
  122. "24":"y",
  123. "25":"y",
  124. "26":"y",
  125. "27":"y",
  126. "28":"y",
  127. "29":"y",
  128. "30":"y",
  129. "31":"y",
  130. "32":"y",
  131. "33":"y",
  132. "34":"y",
  133. "35":"y",
  134. "36":"y",
  135. "37":"y",
  136. "38":"y",
  137. "39":"y",
  138. "40":"y",
  139. "41":"y",
  140. "42":"y",
  141. "43":"y",
  142. "44":"y",
  143. "45":"y",
  144. "46":"y",
  145. "47":"y",
  146. "48":"y",
  147. "49":"y",
  148. "50":"y",
  149. "51":"y",
  150. "52":"y",
  151. "53":"y",
  152. "54":"y",
  153. "55":"y",
  154. "56":"y",
  155. "57":"y"
  156. },
  157. "safari":{
  158. "3.1":"u",
  159. "3.2":"u",
  160. "4":"y",
  161. "5":"y",
  162. "5.1":"y",
  163. "6":"y",
  164. "6.1":"y",
  165. "7":"y",
  166. "7.1":"y",
  167. "8":"y",
  168. "9":"y",
  169. "9.1":"y",
  170. "10":"y",
  171. "TP":"y"
  172. },
  173. "opera":{
  174. "9":"u",
  175. "9.5-9.6":"u",
  176. "10.0-10.1":"a #1",
  177. "10.5":"a #1",
  178. "10.6":"y",
  179. "11":"y",
  180. "11.1":"y",
  181. "11.5":"y",
  182. "11.6":"y",
  183. "12":"y",
  184. "12.1":"y",
  185. "15":"y",
  186. "16":"y",
  187. "17":"y",
  188. "18":"y",
  189. "19":"y",
  190. "20":"y",
  191. "21":"y",
  192. "22":"y",
  193. "23":"y",
  194. "24":"y",
  195. "25":"y",
  196. "26":"y",
  197. "27":"y",
  198. "28":"y",
  199. "29":"y",
  200. "30":"y",
  201. "31":"y",
  202. "32":"y",
  203. "33":"y",
  204. "34":"y",
  205. "35":"y",
  206. "36":"y",
  207. "37":"y",
  208. "38":"y",
  209. "39":"y",
  210. "40":"y",
  211. "41":"y",
  212. "42":"y",
  213. "43":"y"
  214. },
  215. "ios_saf":{
  216. "3.2":"u",
  217. "4.0-4.1":"y",
  218. "4.2-4.3":"y",
  219. "5.0-5.1":"y",
  220. "6.0-6.1":"y",
  221. "7.0-7.1":"y",
  222. "8":"y",
  223. "8.1-8.4":"y",
  224. "9.0-9.2":"y",
  225. "9.3":"y",
  226. "10-10.1":"y"
  227. },
  228. "op_mini":{
  229. "all":"y"
  230. },
  231. "android":{
  232. "2.1":"u",
  233. "2.2":"u",
  234. "2.3":"y",
  235. "3":"y",
  236. "4":"y",
  237. "4.1":"y",
  238. "4.2-4.3":"y",
  239. "4.4":"y",
  240. "4.4.3-4.4.4":"y",
  241. "53":"y"
  242. },
  243. "bb":{
  244. "7":"y",
  245. "10":"y"
  246. },
  247. "op_mob":{
  248. "10":"a #1",
  249. "11":"y",
  250. "11.1":"y",
  251. "11.5":"y",
  252. "12":"y",
  253. "12.1":"y",
  254. "37":"y"
  255. },
  256. "and_chr":{
  257. "54":"y"
  258. },
  259. "and_ff":{
  260. "50":"y"
  261. },
  262. "ie_mob":{
  263. "10":"y",
  264. "11":"y"
  265. },
  266. "and_uc":{
  267. "11":"y"
  268. },
  269. "samsung":{
  270. "4":"y"
  271. }
  272. },
  273. "notes":"",
  274. "notes_by_num":{
  275. "1":"The returned object lacks `width` and `height` properties.",
  276. "2":"Returns incorrect values for elements which have had CSS `transform`s applied to them.",
  277. "3":"The returned object cannot have new properties added to it; it's not extensible.",
  278. "4":"Existing properties of the returned object are immutable."
  279. },
  280. "usage_perc_y":97.47,
  281. "usage_perc_a":0.63,
  282. "ucprefix":false,
  283. "parent":"",
  284. "keywords":"getBoundingClientRect,bounding,client,rect,DOMRect,box,cssom",
  285. "ie_id":"",
  286. "chrome_id":"",
  287. "firefox_id":"",
  288. "webkit_id":"",
  289. "shown":true
  290. }