viewport-units.json 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  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":"https://www.w3.org/TR/css3-values/#viewport-relative-lengths",
  5. "status":"cr",
  6. "links":[
  7. {
  8. "url":"https://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":"https://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 its `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](https://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":"`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. "description":"IE and Edge truncate all units to 2 decimals places. Lengths coming from fractions may not be rendered with the expected value."
  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":"y",
  85. "17":"y",
  86. "18":"y"
  87. },
  88. "firefox":{
  89. "2":"n",
  90. "3":"n",
  91. "3.5":"n",
  92. "3.6":"n",
  93. "4":"n",
  94. "5":"n",
  95. "6":"n",
  96. "7":"n",
  97. "8":"n",
  98. "9":"n",
  99. "10":"n",
  100. "11":"n",
  101. "12":"n",
  102. "13":"n",
  103. "14":"n",
  104. "15":"n",
  105. "16":"n",
  106. "17":"n",
  107. "18":"n",
  108. "19":"y",
  109. "20":"y",
  110. "21":"y",
  111. "22":"y",
  112. "23":"y",
  113. "24":"y",
  114. "25":"y",
  115. "26":"y",
  116. "27":"y",
  117. "28":"y",
  118. "29":"y",
  119. "30":"y",
  120. "31":"y",
  121. "32":"y",
  122. "33":"y",
  123. "34":"y",
  124. "35":"y",
  125. "36":"y",
  126. "37":"y",
  127. "38":"y",
  128. "39":"y",
  129. "40":"y",
  130. "41":"y",
  131. "42":"y",
  132. "43":"y",
  133. "44":"y",
  134. "45":"y",
  135. "46":"y",
  136. "47":"y",
  137. "48":"y",
  138. "49":"y",
  139. "50":"y",
  140. "51":"y",
  141. "52":"y",
  142. "53":"y",
  143. "54":"y",
  144. "55":"y",
  145. "56":"y",
  146. "57":"y",
  147. "58":"y",
  148. "59":"y",
  149. "60":"y",
  150. "61":"y",
  151. "62":"y"
  152. },
  153. "chrome":{
  154. "4":"n",
  155. "5":"n",
  156. "6":"n",
  157. "7":"n",
  158. "8":"n",
  159. "9":"n",
  160. "10":"n",
  161. "11":"n",
  162. "12":"n",
  163. "13":"n",
  164. "14":"n",
  165. "15":"n",
  166. "16":"n",
  167. "17":"n",
  168. "18":"n",
  169. "19":"n",
  170. "20":"a #2",
  171. "21":"a #2",
  172. "22":"a #2",
  173. "23":"a #2",
  174. "24":"a #2",
  175. "25":"a #2",
  176. "26":"y",
  177. "27":"y",
  178. "28":"y",
  179. "29":"y",
  180. "30":"y",
  181. "31":"y",
  182. "32":"y",
  183. "33":"y",
  184. "34":"y",
  185. "35":"y",
  186. "36":"y",
  187. "37":"y",
  188. "38":"y",
  189. "39":"y",
  190. "40":"y",
  191. "41":"y",
  192. "42":"y",
  193. "43":"y",
  194. "44":"y",
  195. "45":"y",
  196. "46":"y",
  197. "47":"y",
  198. "48":"y",
  199. "49":"y",
  200. "50":"y",
  201. "51":"y",
  202. "52":"y",
  203. "53":"y",
  204. "54":"y",
  205. "55":"y",
  206. "56":"y",
  207. "57":"y",
  208. "58":"y",
  209. "59":"y",
  210. "60":"y",
  211. "61":"y",
  212. "62":"y",
  213. "63":"y",
  214. "64":"y",
  215. "65":"y",
  216. "66":"y",
  217. "67":"y",
  218. "68":"y",
  219. "69":"y"
  220. },
  221. "safari":{
  222. "3.1":"n",
  223. "3.2":"n",
  224. "4":"n",
  225. "5":"n",
  226. "5.1":"n",
  227. "6":"a #2",
  228. "6.1":"y",
  229. "7":"y",
  230. "7.1":"y",
  231. "8":"y",
  232. "9":"y",
  233. "9.1":"y",
  234. "10":"y",
  235. "10.1":"y",
  236. "11":"y",
  237. "11.1":"y",
  238. "TP":"y"
  239. },
  240. "opera":{
  241. "9":"n",
  242. "9.5-9.6":"n",
  243. "10.0-10.1":"n",
  244. "10.5":"n",
  245. "10.6":"n",
  246. "11":"n",
  247. "11.1":"n",
  248. "11.5":"n",
  249. "11.6":"n",
  250. "12":"n",
  251. "12.1":"n",
  252. "15":"y",
  253. "16":"y",
  254. "17":"y",
  255. "18":"y",
  256. "19":"y",
  257. "20":"y",
  258. "21":"y",
  259. "22":"y",
  260. "23":"y",
  261. "24":"y",
  262. "25":"y",
  263. "26":"y",
  264. "27":"y",
  265. "28":"y",
  266. "29":"y",
  267. "30":"y",
  268. "31":"y",
  269. "32":"y",
  270. "33":"y",
  271. "34":"y",
  272. "35":"y",
  273. "36":"y",
  274. "37":"y",
  275. "38":"y",
  276. "39":"y",
  277. "40":"y",
  278. "41":"y",
  279. "42":"y",
  280. "43":"y",
  281. "44":"y",
  282. "45":"y",
  283. "46":"y",
  284. "47":"y",
  285. "48":"y",
  286. "49":"y",
  287. "50":"y",
  288. "51":"y",
  289. "52":"y"
  290. },
  291. "ios_saf":{
  292. "3.2":"n",
  293. "4.0-4.1":"n",
  294. "4.2-4.3":"n",
  295. "5.0-5.1":"n",
  296. "6.0-6.1":"a #2 #3",
  297. "7.0-7.1":"a #3",
  298. "8":"y",
  299. "8.1-8.4":"y",
  300. "9.0-9.2":"y",
  301. "9.3":"y",
  302. "10.0-10.2":"y",
  303. "10.3":"y",
  304. "11.0-11.2":"y",
  305. "11.3":"y"
  306. },
  307. "op_mini":{
  308. "all":"n"
  309. },
  310. "android":{
  311. "2.1":"n",
  312. "2.2":"n",
  313. "2.3":"n",
  314. "3":"n",
  315. "4":"n",
  316. "4.1":"n",
  317. "4.2-4.3":"n",
  318. "4.4":"y",
  319. "4.4.3-4.4.4":"y",
  320. "62":"y"
  321. },
  322. "bb":{
  323. "7":"n",
  324. "10":"y"
  325. },
  326. "op_mob":{
  327. "10":"n",
  328. "11":"n",
  329. "11.1":"n",
  330. "11.5":"n",
  331. "12":"n",
  332. "12.1":"n",
  333. "37":"y"
  334. },
  335. "and_chr":{
  336. "66":"y"
  337. },
  338. "and_ff":{
  339. "57":"y"
  340. },
  341. "ie_mob":{
  342. "10":"a #2",
  343. "11":"a #2"
  344. },
  345. "and_uc":{
  346. "11.8":"y"
  347. },
  348. "samsung":{
  349. "4":"y",
  350. "5":"y",
  351. "6.2":"y"
  352. },
  353. "and_qq":{
  354. "1.2":"y"
  355. },
  356. "baidu":{
  357. "7.12":"y"
  358. }
  359. },
  360. "notes":"",
  361. "notes_by_num":{
  362. "1":"Partial support in IE9 refers to supporting \"vm\" instead of \"vmin\".",
  363. "2":"Partial support refers to not supporting the \"vmax\" unit. ",
  364. "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))."
  365. },
  366. "usage_perc_y":90.27,
  367. "usage_perc_a":3.66,
  368. "ucprefix":false,
  369. "parent":"",
  370. "keywords":"vm,viewport-percentage",
  371. "ie_id":"cssvmaxunit",
  372. "chrome_id":"",
  373. "firefox_id":"",
  374. "webkit_id":"",
  375. "shown":true
  376. }