viewport-units.json 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. {
  2. "title":"Viewport units: vw, vh, vmin, vmax",
  3. "description":"Length units representing 1% of the viewport size for viewport 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":"Chrome does not support viewport units for border widths, column gaps, transform values, box shadows or in `calc()` until version 34."
  31. },
  32. {
  33. "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()`."
  34. },
  35. {
  36. "description":"iOS 7 Safari sets viewport unit values to 0 if the page has been left and is returned to after 60 seconds."
  37. },
  38. {
  39. "description":"Internet Explorer 9 in print-mode interprets `vh` as pages. `30vh` = 30 pages"
  40. },
  41. {
  42. "description":"iOS 7 Safari recalculates widths set in `vh` as `vw`, and heights set in `vw` as `vh`, when orientation changes."
  43. },
  44. {
  45. "description":"In IE 10 and 11, using `vw` units with 3D transforms causes unexpected behavior"
  46. },
  47. {
  48. "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."
  49. },
  50. {
  51. "description":"IE9 does not calculate viewport units correctly when the browser or OS is zoomed."
  52. },
  53. {
  54. "description":"In IE9 inside an iframe, viewport units will be calculated in the context of the parent window and not the iframe."
  55. },
  56. {
  57. "description":"[Chrome does not print elements defined with viewport units.](https://code.google.com/p/chromium/issues/detail?id=382313)"
  58. },
  59. {
  60. "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."
  61. }
  62. ],
  63. "categories":[
  64. "CSS3"
  65. ],
  66. "stats":{
  67. "ie":{
  68. "5.5":"n",
  69. "6":"n",
  70. "7":"n",
  71. "8":"n",
  72. "9":"a #1",
  73. "10":"a #2",
  74. "11":"a #2"
  75. },
  76. "edge":{
  77. "12":"a #2",
  78. "13":"a #2",
  79. "14":"a #2",
  80. "15":"a #2"
  81. },
  82. "firefox":{
  83. "2":"n",
  84. "3":"n",
  85. "3.5":"n",
  86. "3.6":"n",
  87. "4":"n",
  88. "5":"n",
  89. "6":"n",
  90. "7":"n",
  91. "8":"n",
  92. "9":"n",
  93. "10":"n",
  94. "11":"n",
  95. "12":"n",
  96. "13":"n",
  97. "14":"n",
  98. "15":"n",
  99. "16":"n",
  100. "17":"n",
  101. "18":"n",
  102. "19":"y",
  103. "20":"y",
  104. "21":"y",
  105. "22":"y",
  106. "23":"y",
  107. "24":"y",
  108. "25":"y",
  109. "26":"y",
  110. "27":"y",
  111. "28":"y",
  112. "29":"y",
  113. "30":"y",
  114. "31":"y",
  115. "32":"y",
  116. "33":"y",
  117. "34":"y",
  118. "35":"y",
  119. "36":"y",
  120. "37":"y",
  121. "38":"y",
  122. "39":"y",
  123. "40":"y",
  124. "41":"y",
  125. "42":"y",
  126. "43":"y",
  127. "44":"y",
  128. "45":"y",
  129. "46":"y",
  130. "47":"y",
  131. "48":"y",
  132. "49":"y",
  133. "50":"y",
  134. "51":"y",
  135. "52":"y",
  136. "53":"y"
  137. },
  138. "chrome":{
  139. "4":"n",
  140. "5":"n",
  141. "6":"n",
  142. "7":"n",
  143. "8":"n",
  144. "9":"n",
  145. "10":"n",
  146. "11":"n",
  147. "12":"n",
  148. "13":"n",
  149. "14":"n",
  150. "15":"n",
  151. "16":"n",
  152. "17":"n",
  153. "18":"n",
  154. "19":"n",
  155. "20":"a #2",
  156. "21":"a #2",
  157. "22":"a #2",
  158. "23":"a #2",
  159. "24":"a #2",
  160. "25":"a #2",
  161. "26":"y",
  162. "27":"y",
  163. "28":"y",
  164. "29":"y",
  165. "30":"y",
  166. "31":"y",
  167. "32":"y",
  168. "33":"y",
  169. "34":"y",
  170. "35":"y",
  171. "36":"y",
  172. "37":"y",
  173. "38":"y",
  174. "39":"y",
  175. "40":"y",
  176. "41":"y",
  177. "42":"y",
  178. "43":"y",
  179. "44":"y",
  180. "45":"y",
  181. "46":"y",
  182. "47":"y",
  183. "48":"y",
  184. "49":"y",
  185. "50":"y",
  186. "51":"y",
  187. "52":"y",
  188. "53":"y",
  189. "54":"y",
  190. "55":"y",
  191. "56":"y",
  192. "57":"y",
  193. "58":"y"
  194. },
  195. "safari":{
  196. "3.1":"n",
  197. "3.2":"n",
  198. "4":"n",
  199. "5":"n",
  200. "5.1":"n",
  201. "6":"a #2",
  202. "6.1":"y",
  203. "7":"y",
  204. "7.1":"y",
  205. "8":"y",
  206. "9":"y",
  207. "9.1":"y",
  208. "10":"y",
  209. "TP":"y"
  210. },
  211. "opera":{
  212. "9":"n",
  213. "9.5-9.6":"n",
  214. "10.0-10.1":"n",
  215. "10.5":"n",
  216. "10.6":"n",
  217. "11":"n",
  218. "11.1":"n",
  219. "11.5":"n",
  220. "11.6":"n",
  221. "12":"n",
  222. "12.1":"n",
  223. "15":"y",
  224. "16":"y",
  225. "17":"y",
  226. "18":"y",
  227. "19":"y",
  228. "20":"y",
  229. "21":"y",
  230. "22":"y",
  231. "23":"y",
  232. "24":"y",
  233. "25":"y",
  234. "26":"y",
  235. "27":"y",
  236. "28":"y",
  237. "29":"y",
  238. "30":"y",
  239. "31":"y",
  240. "32":"y",
  241. "33":"y",
  242. "34":"y",
  243. "35":"y",
  244. "36":"y",
  245. "37":"y",
  246. "38":"y",
  247. "39":"y",
  248. "40":"y",
  249. "41":"y",
  250. "42":"y",
  251. "43":"y",
  252. "44":"y"
  253. },
  254. "ios_saf":{
  255. "3.2":"n",
  256. "4.0-4.1":"n",
  257. "4.2-4.3":"n",
  258. "5.0-5.1":"n",
  259. "6.0-6.1":"a #2 #3",
  260. "7.0-7.1":"a #3",
  261. "8":"y",
  262. "8.1-8.4":"y",
  263. "9.0-9.2":"y",
  264. "9.3":"y",
  265. "10-10.1":"y"
  266. },
  267. "op_mini":{
  268. "all":"n"
  269. },
  270. "android":{
  271. "2.1":"n",
  272. "2.2":"n",
  273. "2.3":"n",
  274. "3":"n",
  275. "4":"n",
  276. "4.1":"n",
  277. "4.2-4.3":"n",
  278. "4.4":"y",
  279. "4.4.3-4.4.4":"y",
  280. "53":"y"
  281. },
  282. "bb":{
  283. "7":"n",
  284. "10":"y"
  285. },
  286. "op_mob":{
  287. "10":"n",
  288. "11":"n",
  289. "11.1":"n",
  290. "11.5":"n",
  291. "12":"n",
  292. "12.1":"n",
  293. "37":"y"
  294. },
  295. "and_chr":{
  296. "55":"y"
  297. },
  298. "and_ff":{
  299. "50":"y"
  300. },
  301. "ie_mob":{
  302. "10":"a #2",
  303. "11":"a #2"
  304. },
  305. "and_uc":{
  306. "11":"n"
  307. },
  308. "samsung":{
  309. "4":"y"
  310. }
  311. },
  312. "notes":"",
  313. "notes_by_num":{
  314. "1":"Partial support in IE9 refers to supporting \"vm\" instead of \"vmin\".",
  315. "2":"Partial support refers to not supporting the \"vmax\" unit. ",
  316. "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))."
  317. },
  318. "usage_perc_y":76.26,
  319. "usage_perc_a":6.41,
  320. "ucprefix":false,
  321. "parent":"",
  322. "keywords":"vm,viewport-percentage",
  323. "ie_id":"cssvmaxunit",
  324. "chrome_id":"",
  325. "firefox_id":"",
  326. "webkit_id":"",
  327. "shown":true
  328. }