Няма описание

viewport-units.json 8.0KB

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