viewport-units.json 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. {
  2. "title":"Viewport units: vw, vh, vmin, vmax",
  3. "description":"Length units representing a percentage of the current viewport dimensions: width (vw), height (vh), the smaller of the two (vmin), or the larger of the two (vmax).",
  4. "spec":"http://www.w3.org/TR/css3-values/#viewport-relative-lengths",
  5. "status":"cr",
  6. "links":[
  7. {
  8. "url":"http://css-tricks.com/viewport-sized-typography/",
  9. "title":"Blog post"
  10. },
  11. {
  12. "url":"https://github.com/saabi/vminpoly",
  13. "title":"Polyfill"
  14. },
  15. {
  16. "url":"https://github.com/rodneyrehm/viewport-units-buggyfill",
  17. "title":"Buggyfill - Polyfill that fixes buggy support"
  18. },
  19. {
  20. "url":"http://blog.rodneyrehm.de/archives/34-iOS7-Mobile-Safari-And-Viewport-Units.html",
  21. "title":"Back-Forward issue blog post"
  22. },
  23. {
  24. "url":"https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer/suggestions/6514497-vmax-unit",
  25. "title":"Microsoft Edge feature request on UserVoice"
  26. }
  27. ],
  28. "bugs":[
  29. {
  30. "description":"In Firefox there is a [documented bug](https://bugzilla.mozilla.org/show_bug.cgi?id=1221721) where `100vh` has no effect on any element with it's `display` property set to `table`."
  31. },
  32. {
  33. "description":"Chrome does not support viewport units for border widths, column gaps, transform values, box shadows or in `calc()` until version 34."
  34. },
  35. {
  36. "description":"Safari & iOS Safari (both 6 and 7) does not support viewport units for border widths, column gaps, transform values, box shadows or in `calc()`."
  37. },
  38. {
  39. "description":"iOS 7 Safari sets viewport unit values to 0 if the page has been left and is returned to after 60 seconds."
  40. },
  41. {
  42. "description":"Internet Explorer 9 in print-mode interprets `vh` as pages. `30vh` = 30 pages"
  43. },
  44. {
  45. "description":"iOS 7 Safari recalculates widths set in `vh` as `vw`, and heights set in `vw` as `vh`, when orientation changes."
  46. },
  47. {
  48. "description":"In IE 10 and 11, using `vw` units with 3D transforms causes unexpected behavior"
  49. },
  50. {
  51. "description":"Currently all browsers but Firefox incorrectly consider 100vw to be the entire page width, including vertical scroll bar, which can [cause a horizontal scroll bar](http://codepen.io/anon/pen/ZGYNWZ) when `overflow: auto` is set."
  52. },
  53. {
  54. "description":"IE9 does not calculate viewport units correctly when the browser or OS is zoomed."
  55. },
  56. {
  57. "description":"In IE9 inside an iframe, viewport units will be calculated in the context of the parent window and not the iframe."
  58. },
  59. {
  60. "description":"[Chrome does not print elements defined with viewport units.](https://code.google.com/p/chromium/issues/detail?id=382313)"
  61. },
  62. {
  63. "description":"`vh` on iOS is reported to include the height of the bottom toolbar in the height calculation, and the width of the sidebar (bookmarks) in the `vw` width calculation."
  64. }
  65. ],
  66. "categories":[
  67. "CSS3"
  68. ],
  69. "stats":{
  70. "ie":{
  71. "5.5":"n",
  72. "6":"n",
  73. "7":"n",
  74. "8":"n",
  75. "9":"a #1",
  76. "10":"a #2",
  77. "11":"a #2"
  78. },
  79. "edge":{
  80. "12":"a #2",
  81. "13":"a #2",
  82. "14":"a #2",
  83. "15":"a #2",
  84. "16":"a #2"
  85. },
  86. "firefox":{
  87. "2":"n",
  88. "3":"n",
  89. "3.5":"n",
  90. "3.6":"n",
  91. "4":"n",
  92. "5":"n",
  93. "6":"n",
  94. "7":"n",
  95. "8":"n",
  96. "9":"n",
  97. "10":"n",
  98. "11":"n",
  99. "12":"n",
  100. "13":"n",
  101. "14":"n",
  102. "15":"n",
  103. "16":"n",
  104. "17":"n",
  105. "18":"n",
  106. "19":"y",
  107. "20":"y",
  108. "21":"y",
  109. "22":"y",
  110. "23":"y",
  111. "24":"y",
  112. "25":"y",
  113. "26":"y",
  114. "27":"y",
  115. "28":"y",
  116. "29":"y",
  117. "30":"y",
  118. "31":"y",
  119. "32":"y",
  120. "33":"y",
  121. "34":"y",
  122. "35":"y",
  123. "36":"y",
  124. "37":"y",
  125. "38":"y",
  126. "39":"y",
  127. "40":"y",
  128. "41":"y",
  129. "42":"y",
  130. "43":"y",
  131. "44":"y",
  132. "45":"y",
  133. "46":"y",
  134. "47":"y",
  135. "48":"y",
  136. "49":"y",
  137. "50":"y",
  138. "51":"y",
  139. "52":"y",
  140. "53":"y",
  141. "54":"y",
  142. "55":"y",
  143. "56":"y",
  144. "57":"y"
  145. },
  146. "chrome":{
  147. "4":"n",
  148. "5":"n",
  149. "6":"n",
  150. "7":"n",
  151. "8":"n",
  152. "9":"n",
  153. "10":"n",
  154. "11":"n",
  155. "12":"n",
  156. "13":"n",
  157. "14":"n",
  158. "15":"n",
  159. "16":"n",
  160. "17":"n",
  161. "18":"n",
  162. "19":"n",
  163. "20":"a #2",
  164. "21":"a #2",
  165. "22":"a #2",
  166. "23":"a #2",
  167. "24":"a #2",
  168. "25":"a #2",
  169. "26":"y",
  170. "27":"y",
  171. "28":"y",
  172. "29":"y",
  173. "30":"y",
  174. "31":"y",
  175. "32":"y",
  176. "33":"y",
  177. "34":"y",
  178. "35":"y",
  179. "36":"y",
  180. "37":"y",
  181. "38":"y",
  182. "39":"y",
  183. "40":"y",
  184. "41":"y",
  185. "42":"y",
  186. "43":"y",
  187. "44":"y",
  188. "45":"y",
  189. "46":"y",
  190. "47":"y",
  191. "48":"y",
  192. "49":"y",
  193. "50":"y",
  194. "51":"y",
  195. "52":"y",
  196. "53":"y",
  197. "54":"y",
  198. "55":"y",
  199. "56":"y",
  200. "57":"y",
  201. "58":"y",
  202. "59":"y",
  203. "60":"y",
  204. "61":"y",
  205. "62":"y",
  206. "63":"y"
  207. },
  208. "safari":{
  209. "3.1":"n",
  210. "3.2":"n",
  211. "4":"n",
  212. "5":"n",
  213. "5.1":"n",
  214. "6":"a #2",
  215. "6.1":"y",
  216. "7":"y",
  217. "7.1":"y",
  218. "8":"y",
  219. "9":"y",
  220. "9.1":"y",
  221. "10":"y",
  222. "10.1":"y",
  223. "11":"y",
  224. "TP":"y"
  225. },
  226. "opera":{
  227. "9":"n",
  228. "9.5-9.6":"n",
  229. "10.0-10.1":"n",
  230. "10.5":"n",
  231. "10.6":"n",
  232. "11":"n",
  233. "11.1":"n",
  234. "11.5":"n",
  235. "11.6":"n",
  236. "12":"n",
  237. "12.1":"n",
  238. "15":"y",
  239. "16":"y",
  240. "17":"y",
  241. "18":"y",
  242. "19":"y",
  243. "20":"y",
  244. "21":"y",
  245. "22":"y",
  246. "23":"y",
  247. "24":"y",
  248. "25":"y",
  249. "26":"y",
  250. "27":"y",
  251. "28":"y",
  252. "29":"y",
  253. "30":"y",
  254. "31":"y",
  255. "32":"y",
  256. "33":"y",
  257. "34":"y",
  258. "35":"y",
  259. "36":"y",
  260. "37":"y",
  261. "38":"y",
  262. "39":"y",
  263. "40":"y",
  264. "41":"y",
  265. "42":"y",
  266. "43":"y",
  267. "44":"y",
  268. "45":"y",
  269. "46":"y",
  270. "47":"y",
  271. "48":"y"
  272. },
  273. "ios_saf":{
  274. "3.2":"n",
  275. "4.0-4.1":"n",
  276. "4.2-4.3":"n",
  277. "5.0-5.1":"n",
  278. "6.0-6.1":"a #2 #3",
  279. "7.0-7.1":"a #3",
  280. "8":"y",
  281. "8.1-8.4":"y",
  282. "9.0-9.2":"y",
  283. "9.3":"y",
  284. "10.0-10.2":"y",
  285. "10.3":"y",
  286. "11":"y"
  287. },
  288. "op_mini":{
  289. "all":"n"
  290. },
  291. "android":{
  292. "2.1":"n",
  293. "2.2":"n",
  294. "2.3":"n",
  295. "3":"n",
  296. "4":"n",
  297. "4.1":"n",
  298. "4.2-4.3":"n",
  299. "4.4":"y",
  300. "4.4.3-4.4.4":"y",
  301. "56":"y"
  302. },
  303. "bb":{
  304. "7":"n",
  305. "10":"y"
  306. },
  307. "op_mob":{
  308. "10":"n",
  309. "11":"n",
  310. "11.1":"n",
  311. "11.5":"n",
  312. "12":"n",
  313. "12.1":"n",
  314. "37":"y"
  315. },
  316. "and_chr":{
  317. "59":"y"
  318. },
  319. "and_ff":{
  320. "54":"y"
  321. },
  322. "ie_mob":{
  323. "10":"a #2",
  324. "11":"a #2"
  325. },
  326. "and_uc":{
  327. "11.4":"y"
  328. },
  329. "samsung":{
  330. "4":"y",
  331. "5":"y"
  332. },
  333. "and_qq":{
  334. "1.2":"y"
  335. },
  336. "baidu":{
  337. "7.12":"y"
  338. }
  339. },
  340. "notes":"",
  341. "notes_by_num":{
  342. "1":"Partial support in IE9 refers to supporting \"vm\" instead of \"vmin\".",
  343. "2":"Partial support refers to not supporting the \"vmax\" unit. ",
  344. "3":"Partial support in iOS7 is due to buggy behavior of the \"vh\" unit (see workarounds: [1](https://gist.github.com/pburtchaell/e702f441ba9b3f76f587), [2](https://gist.github.com/BenMorel/e9e34c08360ebbbd0634))."
  345. },
  346. "usage_perc_y":88.26,
  347. "usage_perc_a":4.95,
  348. "ucprefix":false,
  349. "parent":"",
  350. "keywords":"vm,viewport-percentage",
  351. "ie_id":"cssvmaxunit",
  352. "chrome_id":"",
  353. "firefox_id":"",
  354. "webkit_id":"",
  355. "shown":true
  356. }