calc.json 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. {
  2. "title":"calc() as CSS unit value",
  3. "description":"Method of allowing calculated values for length units, i.e. `width: calc(100% - 3em)`",
  4. "spec":"http://www.w3.org/TR/css3-values/#calc",
  5. "status":"cr",
  6. "links":[
  7. {
  8. "url":"http://hacks.mozilla.org/2010/06/css3-calc/",
  9. "title":"Mozilla Hacks article"
  10. },
  11. {
  12. "url":"https://developer.mozilla.org/en/docs/Web/CSS/calc",
  13. "title":"MDN article"
  14. },
  15. {
  16. "url":"http://docs.webplatform.org/wiki/css/functions/calc",
  17. "title":"WebPlatform Docs"
  18. }
  19. ],
  20. "bugs":[
  21. {
  22. "description":"IE10 crashes when a div with a property using `calc()` has a child with [same property with inherit](http://stackoverflow.com/questions/19423384/css-less-calc-method-is-crashing-my-ie10)."
  23. },
  24. {
  25. "description":"IE 9 - 11 don't render `box-shadow` when `calc()` is used for any of the values"
  26. },
  27. {
  28. "description":"IE10, IE11, and Edge < 14 don't support using `calc()` inside a `transform`. [Bug report](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/104773/)"
  29. },
  30. {
  31. "description":"Safari & iOS Safari (both 6 and 7) does not support viewport units (`vw`, `vh`, etc) in `calc()`."
  32. },
  33. {
  34. "description":"IE & Edge are reported to not support calc inside a 'flex'. (Not tested on older versions)\r\nThis example does not work: `flex: 1 1 calc(50% - 20px);`"
  35. },
  36. {
  37. "description":"Firefox <48 does not support `calc()` inside the `line-height`, `stroke-width`, `stroke-dashoffset`, and `stroke-dasharray` properties. [Bug report](https://bugzilla.mozilla.org/show_bug.cgi?id=594933)"
  38. },
  39. {
  40. "description":"IE11 is reported to have trouble with `calc()` with nested expressions, e.g. `width: calc((100% - 10px) / 3);` (i.e. it rounds differently)"
  41. },
  42. {
  43. "description":"IE11 is reported to not support `calc()` correctly in [generated content](http://stackoverflow.com/questions/31323915/internet-explorer-incorrectly-calculates-percentage-height-for-generated-content)"
  44. },
  45. {
  46. "description":"IE11 does not support transitioning values set with `calc()`"
  47. }
  48. ],
  49. "categories":[
  50. "CSS3"
  51. ],
  52. "stats":{
  53. "ie":{
  54. "5.5":"n",
  55. "6":"n",
  56. "7":"n",
  57. "8":"n",
  58. "9":"a #2",
  59. "10":"y",
  60. "11":"y"
  61. },
  62. "edge":{
  63. "12":"y",
  64. "13":"y",
  65. "14":"y",
  66. "15":"y"
  67. },
  68. "firefox":{
  69. "2":"n",
  70. "3":"n",
  71. "3.5":"n",
  72. "3.6":"n",
  73. "4":"y x",
  74. "5":"y x",
  75. "6":"y x",
  76. "7":"y x",
  77. "8":"y x",
  78. "9":"y x",
  79. "10":"y x",
  80. "11":"y x",
  81. "12":"y x",
  82. "13":"y x",
  83. "14":"y x",
  84. "15":"y x",
  85. "16":"y",
  86. "17":"y",
  87. "18":"y",
  88. "19":"y",
  89. "20":"y",
  90. "21":"y",
  91. "22":"y",
  92. "23":"y",
  93. "24":"y",
  94. "25":"y",
  95. "26":"y",
  96. "27":"y",
  97. "28":"y",
  98. "29":"y",
  99. "30":"y",
  100. "31":"y",
  101. "32":"y",
  102. "33":"y",
  103. "34":"y",
  104. "35":"y",
  105. "36":"y",
  106. "37":"y",
  107. "38":"y",
  108. "39":"y",
  109. "40":"y",
  110. "41":"y",
  111. "42":"y",
  112. "43":"y",
  113. "44":"y",
  114. "45":"y",
  115. "46":"y",
  116. "47":"y",
  117. "48":"y",
  118. "49":"y",
  119. "50":"y",
  120. "51":"y",
  121. "52":"y",
  122. "53":"y"
  123. },
  124. "chrome":{
  125. "4":"n",
  126. "5":"n",
  127. "6":"n",
  128. "7":"n",
  129. "8":"n",
  130. "9":"n",
  131. "10":"n",
  132. "11":"n",
  133. "12":"n",
  134. "13":"n",
  135. "14":"n",
  136. "15":"n",
  137. "16":"n",
  138. "17":"n",
  139. "18":"n",
  140. "19":"y x",
  141. "20":"y x",
  142. "21":"y x",
  143. "22":"y x",
  144. "23":"y x",
  145. "24":"y x",
  146. "25":"y x",
  147. "26":"y",
  148. "27":"y",
  149. "28":"y",
  150. "29":"y",
  151. "30":"y",
  152. "31":"y",
  153. "32":"y",
  154. "33":"y",
  155. "34":"y",
  156. "35":"y",
  157. "36":"y",
  158. "37":"y",
  159. "38":"y",
  160. "39":"y",
  161. "40":"y",
  162. "41":"y",
  163. "42":"y",
  164. "43":"y",
  165. "44":"y",
  166. "45":"y",
  167. "46":"y",
  168. "47":"y",
  169. "48":"y",
  170. "49":"y",
  171. "50":"y",
  172. "51":"y",
  173. "52":"y",
  174. "53":"y",
  175. "54":"y",
  176. "55":"y",
  177. "56":"y",
  178. "57":"y",
  179. "58":"y"
  180. },
  181. "safari":{
  182. "3.1":"n",
  183. "3.2":"n",
  184. "4":"n",
  185. "5":"n",
  186. "5.1":"n",
  187. "6":"y x",
  188. "6.1":"y",
  189. "7":"y",
  190. "7.1":"y",
  191. "8":"y",
  192. "9":"y",
  193. "9.1":"y",
  194. "10":"y",
  195. "TP":"y"
  196. },
  197. "opera":{
  198. "9":"n",
  199. "9.5-9.6":"n",
  200. "10.0-10.1":"n",
  201. "10.5":"n",
  202. "10.6":"n",
  203. "11":"n",
  204. "11.1":"n",
  205. "11.5":"n",
  206. "11.6":"n",
  207. "12":"n",
  208. "12.1":"n",
  209. "15":"y",
  210. "16":"y",
  211. "17":"y",
  212. "18":"y",
  213. "19":"y",
  214. "20":"y",
  215. "21":"y",
  216. "22":"y",
  217. "23":"y",
  218. "24":"y",
  219. "25":"y",
  220. "26":"y",
  221. "27":"y",
  222. "28":"y",
  223. "29":"y",
  224. "30":"y",
  225. "31":"y",
  226. "32":"y",
  227. "33":"y",
  228. "34":"y",
  229. "35":"y",
  230. "36":"y",
  231. "37":"y",
  232. "38":"y",
  233. "39":"y",
  234. "40":"y",
  235. "41":"y",
  236. "42":"y",
  237. "43":"y",
  238. "44":"y"
  239. },
  240. "ios_saf":{
  241. "3.2":"n",
  242. "4.0-4.1":"n",
  243. "4.2-4.3":"n",
  244. "5.0-5.1":"n",
  245. "6.0-6.1":"y x",
  246. "7.0-7.1":"y",
  247. "8":"y",
  248. "8.1-8.4":"y",
  249. "9.0-9.2":"y",
  250. "9.3":"y",
  251. "10-10.1":"y"
  252. },
  253. "op_mini":{
  254. "all":"n"
  255. },
  256. "android":{
  257. "2.1":"n",
  258. "2.2":"n",
  259. "2.3":"n",
  260. "3":"n",
  261. "4":"n",
  262. "4.1":"n",
  263. "4.2-4.3":"n",
  264. "4.4":"a #1",
  265. "4.4.3-4.4.4":"a #1",
  266. "53":"y"
  267. },
  268. "bb":{
  269. "7":"n",
  270. "10":"y"
  271. },
  272. "op_mob":{
  273. "10":"n",
  274. "11":"n",
  275. "11.1":"n",
  276. "11.5":"n",
  277. "12":"n",
  278. "12.1":"n",
  279. "37":"y"
  280. },
  281. "and_chr":{
  282. "55":"y"
  283. },
  284. "and_ff":{
  285. "50":"y"
  286. },
  287. "ie_mob":{
  288. "10":"y",
  289. "11":"y"
  290. },
  291. "and_uc":{
  292. "11":"n"
  293. },
  294. "samsung":{
  295. "4":"y"
  296. }
  297. },
  298. "notes":"Support can be somewhat emulated in older versions of IE using the non-standard `expression()` syntax.\r\n\r\nDue to the way browsers handle [sub-pixel rounding](http://ejohn.org/blog/sub-pixel-problems-in-css/) differently, layouts using `calc()` expressions may have unexpected results.",
  299. "notes_by_num":{
  300. "1":"Partial support in Android Browser 4.4 refers to the browser lacking the ability to multiply and divide values.",
  301. "2":"Partial support in IE9 refers to the browser crashing when used as a `background-position` value."
  302. },
  303. "usage_perc_y":80.64,
  304. "usage_perc_a":2.18,
  305. "ucprefix":false,
  306. "parent":"",
  307. "keywords":"",
  308. "ie_id":"csscalc",
  309. "chrome_id":"5765241438732288",
  310. "firefox_id":"",
  311. "webkit_id":"",
  312. "shown":true
  313. }