viewport-units.json 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  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. },
  81. "firefox":{
  82. "2":"n",
  83. "3":"n",
  84. "3.5":"n",
  85. "3.6":"n",
  86. "4":"n",
  87. "5":"n",
  88. "6":"n",
  89. "7":"n",
  90. "8":"n",
  91. "9":"n",
  92. "10":"n",
  93. "11":"n",
  94. "12":"n",
  95. "13":"n",
  96. "14":"n",
  97. "15":"n",
  98. "16":"n",
  99. "17":"n",
  100. "18":"n",
  101. "19":"y",
  102. "20":"y",
  103. "21":"y",
  104. "22":"y",
  105. "23":"y",
  106. "24":"y",
  107. "25":"y",
  108. "26":"y",
  109. "27":"y",
  110. "28":"y",
  111. "29":"y",
  112. "30":"y",
  113. "31":"y",
  114. "32":"y",
  115. "33":"y",
  116. "34":"y",
  117. "35":"y",
  118. "36":"y",
  119. "37":"y",
  120. "38":"y",
  121. "39":"y",
  122. "40":"y",
  123. "41":"y",
  124. "42":"y",
  125. "43":"y",
  126. "44":"y",
  127. "45":"y",
  128. "46":"y",
  129. "47":"y",
  130. "48":"y",
  131. "49":"y",
  132. "50":"y",
  133. "51":"y",
  134. "52":"y",
  135. "53":"y"
  136. },
  137. "chrome":{
  138. "4":"n",
  139. "5":"n",
  140. "6":"n",
  141. "7":"n",
  142. "8":"n",
  143. "9":"n",
  144. "10":"n",
  145. "11":"n",
  146. "12":"n",
  147. "13":"n",
  148. "14":"n",
  149. "15":"n",
  150. "16":"n",
  151. "17":"n",
  152. "18":"n",
  153. "19":"n",
  154. "20":"a #2",
  155. "21":"a #2",
  156. "22":"a #2",
  157. "23":"a #2",
  158. "24":"a #2",
  159. "25":"a #2",
  160. "26":"y",
  161. "27":"y",
  162. "28":"y",
  163. "29":"y",
  164. "30":"y",
  165. "31":"y",
  166. "32":"y",
  167. "33":"y",
  168. "34":"y",
  169. "35":"y",
  170. "36":"y",
  171. "37":"y",
  172. "38":"y",
  173. "39":"y",
  174. "40":"y",
  175. "41":"y",
  176. "42":"y",
  177. "43":"y",
  178. "44":"y",
  179. "45":"y",
  180. "46":"y",
  181. "47":"y",
  182. "48":"y",
  183. "49":"y",
  184. "50":"y",
  185. "51":"y",
  186. "52":"y",
  187. "53":"y",
  188. "54":"y",
  189. "55":"y",
  190. "56":"y",
  191. "57":"y"
  192. },
  193. "safari":{
  194. "3.1":"n",
  195. "3.2":"n",
  196. "4":"n",
  197. "5":"n",
  198. "5.1":"n",
  199. "6":"a #2",
  200. "6.1":"y",
  201. "7":"y",
  202. "7.1":"y",
  203. "8":"y",
  204. "9":"y",
  205. "9.1":"y",
  206. "10":"y",
  207. "TP":"y"
  208. },
  209. "opera":{
  210. "9":"n",
  211. "9.5-9.6":"n",
  212. "10.0-10.1":"n",
  213. "10.5":"n",
  214. "10.6":"n",
  215. "11":"n",
  216. "11.1":"n",
  217. "11.5":"n",
  218. "11.6":"n",
  219. "12":"n",
  220. "12.1":"n",
  221. "15":"y",
  222. "16":"y",
  223. "17":"y",
  224. "18":"y",
  225. "19":"y",
  226. "20":"y",
  227. "21":"y",
  228. "22":"y",
  229. "23":"y",
  230. "24":"y",
  231. "25":"y",
  232. "26":"y",
  233. "27":"y",
  234. "28":"y",
  235. "29":"y",
  236. "30":"y",
  237. "31":"y",
  238. "32":"y",
  239. "33":"y",
  240. "34":"y",
  241. "35":"y",
  242. "36":"y",
  243. "37":"y",
  244. "38":"y",
  245. "39":"y",
  246. "40":"y",
  247. "41":"y",
  248. "42":"y",
  249. "43":"y"
  250. },
  251. "ios_saf":{
  252. "3.2":"n",
  253. "4.0-4.1":"n",
  254. "4.2-4.3":"n",
  255. "5.0-5.1":"n",
  256. "6.0-6.1":"a #2 #3",
  257. "7.0-7.1":"a #3",
  258. "8":"y",
  259. "8.1-8.4":"y",
  260. "9.0-9.2":"y",
  261. "9.3":"y",
  262. "10-10.1":"y"
  263. },
  264. "op_mini":{
  265. "all":"n"
  266. },
  267. "android":{
  268. "2.1":"n",
  269. "2.2":"n",
  270. "2.3":"n",
  271. "3":"n",
  272. "4":"n",
  273. "4.1":"n",
  274. "4.2-4.3":"n",
  275. "4.4":"y",
  276. "4.4.3-4.4.4":"y",
  277. "53":"y"
  278. },
  279. "bb":{
  280. "7":"n",
  281. "10":"y"
  282. },
  283. "op_mob":{
  284. "10":"n",
  285. "11":"n",
  286. "11.1":"n",
  287. "11.5":"n",
  288. "12":"n",
  289. "12.1":"n",
  290. "37":"y"
  291. },
  292. "and_chr":{
  293. "54":"y"
  294. },
  295. "and_ff":{
  296. "50":"y"
  297. },
  298. "ie_mob":{
  299. "10":"a #2",
  300. "11":"a #2"
  301. },
  302. "and_uc":{
  303. "11":"n"
  304. },
  305. "samsung":{
  306. "4":"y"
  307. }
  308. },
  309. "notes":"",
  310. "notes_by_num":{
  311. "1":"Partial support in IE9 refers to supporting \"vm\" instead of \"vmin\".",
  312. "2":"Partial support refers to not supporting the \"vmax\" unit. ",
  313. "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))."
  314. },
  315. "usage_perc_y":76.55,
  316. "usage_perc_a":6.62,
  317. "ucprefix":false,
  318. "parent":"",
  319. "keywords":"vm,viewport-percentage",
  320. "ie_id":"cssvmaxunit",
  321. "chrome_id":"",
  322. "firefox_id":"",
  323. "webkit_id":"",
  324. "shown":true
  325. }