calc.json 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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":"Mozilla Developer Network (MDN) documentation - calc"
  14. },
  15. {
  16. "url":"https://www.webplatform.org/docs/css/functions/calc",
  17. "title":"WebPlatform Docs"
  18. }
  19. ],
  20. "bugs":[
  21. {
  22. "description":"IE 9 - 11 and Edge do not support `width: calc()` on table cells. [Bug Report](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/10982196/)"
  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 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)."
  29. },
  30. {
  31. "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/)"
  32. },
  33. {
  34. "description":"IE11 is reported to have trouble with `calc()` with nested expressions, e.g. `width: calc((100% - 10px) / 3);` (i.e. it rounds differently)"
  35. },
  36. {
  37. "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)"
  38. },
  39. {
  40. "description":"IE11 does not support transitioning values set with `calc()`"
  41. },
  42. {
  43. "description":"Safari & iOS Safari (both 6 and 7) does not support viewport units (`vw`, `vh`, etc) in `calc()`."
  44. },
  45. {
  46. "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);`"
  47. },
  48. {
  49. "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)"
  50. },
  51. {
  52. "description":"Firefox does not support `width: calc()` on table cells. [Bug Report](https://bugzilla.mozilla.org/show_bug.cgi?id=1297576)"
  53. }
  54. ],
  55. "categories":[
  56. "CSS3"
  57. ],
  58. "stats":{
  59. "ie":{
  60. "5.5":"n",
  61. "6":"n",
  62. "7":"n",
  63. "8":"n",
  64. "9":"a #2",
  65. "10":"y",
  66. "11":"y"
  67. },
  68. "edge":{
  69. "12":"y",
  70. "13":"y",
  71. "14":"y",
  72. "15":"y",
  73. "16":"y"
  74. },
  75. "firefox":{
  76. "2":"n",
  77. "3":"n",
  78. "3.5":"n",
  79. "3.6":"n",
  80. "4":"y x",
  81. "5":"y x",
  82. "6":"y x",
  83. "7":"y x",
  84. "8":"y x",
  85. "9":"y x",
  86. "10":"y x",
  87. "11":"y x",
  88. "12":"y x",
  89. "13":"y x",
  90. "14":"y x",
  91. "15":"y x",
  92. "16":"y",
  93. "17":"y",
  94. "18":"y",
  95. "19":"y",
  96. "20":"y",
  97. "21":"y",
  98. "22":"y",
  99. "23":"y",
  100. "24":"y",
  101. "25":"y",
  102. "26":"y",
  103. "27":"y",
  104. "28":"y",
  105. "29":"y",
  106. "30":"y",
  107. "31":"y",
  108. "32":"y",
  109. "33":"y",
  110. "34":"y",
  111. "35":"y",
  112. "36":"y",
  113. "37":"y",
  114. "38":"y",
  115. "39":"y",
  116. "40":"y",
  117. "41":"y",
  118. "42":"y",
  119. "43":"y",
  120. "44":"y",
  121. "45":"y",
  122. "46":"y",
  123. "47":"y",
  124. "48":"y",
  125. "49":"y",
  126. "50":"y",
  127. "51":"y",
  128. "52":"y",
  129. "53":"y",
  130. "54":"y",
  131. "55":"y",
  132. "56":"y",
  133. "57":"y"
  134. },
  135. "chrome":{
  136. "4":"n",
  137. "5":"n",
  138. "6":"n",
  139. "7":"n",
  140. "8":"n",
  141. "9":"n",
  142. "10":"n",
  143. "11":"n",
  144. "12":"n",
  145. "13":"n",
  146. "14":"n",
  147. "15":"n",
  148. "16":"n",
  149. "17":"n",
  150. "18":"n",
  151. "19":"y x",
  152. "20":"y x",
  153. "21":"y x",
  154. "22":"y x",
  155. "23":"y x",
  156. "24":"y x",
  157. "25":"y x",
  158. "26":"y",
  159. "27":"y",
  160. "28":"y",
  161. "29":"y",
  162. "30":"y",
  163. "31":"y",
  164. "32":"y",
  165. "33":"y",
  166. "34":"y",
  167. "35":"y",
  168. "36":"y",
  169. "37":"y",
  170. "38":"y",
  171. "39":"y",
  172. "40":"y",
  173. "41":"y",
  174. "42":"y",
  175. "43":"y",
  176. "44":"y",
  177. "45":"y",
  178. "46":"y",
  179. "47":"y",
  180. "48":"y",
  181. "49":"y",
  182. "50":"y",
  183. "51":"y",
  184. "52":"y",
  185. "53":"y",
  186. "54":"y",
  187. "55":"y",
  188. "56":"y",
  189. "57":"y",
  190. "58":"y",
  191. "59":"y",
  192. "60":"y",
  193. "61":"y",
  194. "62":"y",
  195. "63":"y"
  196. },
  197. "safari":{
  198. "3.1":"n",
  199. "3.2":"n",
  200. "4":"n",
  201. "5":"n",
  202. "5.1":"n",
  203. "6":"y x",
  204. "6.1":"y",
  205. "7":"y",
  206. "7.1":"y",
  207. "8":"y",
  208. "9":"y",
  209. "9.1":"y",
  210. "10":"y",
  211. "10.1":"y",
  212. "11":"y",
  213. "TP":"y"
  214. },
  215. "opera":{
  216. "9":"n",
  217. "9.5-9.6":"n",
  218. "10.0-10.1":"n",
  219. "10.5":"n",
  220. "10.6":"n",
  221. "11":"n",
  222. "11.1":"n",
  223. "11.5":"n",
  224. "11.6":"n",
  225. "12":"n",
  226. "12.1":"n",
  227. "15":"y",
  228. "16":"y",
  229. "17":"y",
  230. "18":"y",
  231. "19":"y",
  232. "20":"y",
  233. "21":"y",
  234. "22":"y",
  235. "23":"y",
  236. "24":"y",
  237. "25":"y",
  238. "26":"y",
  239. "27":"y",
  240. "28":"y",
  241. "29":"y",
  242. "30":"y",
  243. "31":"y",
  244. "32":"y",
  245. "33":"y",
  246. "34":"y",
  247. "35":"y",
  248. "36":"y",
  249. "37":"y",
  250. "38":"y",
  251. "39":"y",
  252. "40":"y",
  253. "41":"y",
  254. "42":"y",
  255. "43":"y",
  256. "44":"y",
  257. "45":"y",
  258. "46":"y",
  259. "47":"y",
  260. "48":"y"
  261. },
  262. "ios_saf":{
  263. "3.2":"n",
  264. "4.0-4.1":"n",
  265. "4.2-4.3":"n",
  266. "5.0-5.1":"n",
  267. "6.0-6.1":"y x",
  268. "7.0-7.1":"y",
  269. "8":"y",
  270. "8.1-8.4":"y",
  271. "9.0-9.2":"y",
  272. "9.3":"y",
  273. "10.0-10.2":"y",
  274. "10.3":"y",
  275. "11":"y"
  276. },
  277. "op_mini":{
  278. "all":"n"
  279. },
  280. "android":{
  281. "2.1":"n",
  282. "2.2":"n",
  283. "2.3":"n",
  284. "3":"n",
  285. "4":"n",
  286. "4.1":"n",
  287. "4.2-4.3":"n",
  288. "4.4":"a #1",
  289. "4.4.3-4.4.4":"a #1",
  290. "56":"y"
  291. },
  292. "bb":{
  293. "7":"n",
  294. "10":"y"
  295. },
  296. "op_mob":{
  297. "10":"n",
  298. "11":"n",
  299. "11.1":"n",
  300. "11.5":"n",
  301. "12":"n",
  302. "12.1":"n",
  303. "37":"y"
  304. },
  305. "and_chr":{
  306. "59":"y"
  307. },
  308. "and_ff":{
  309. "54":"y"
  310. },
  311. "ie_mob":{
  312. "10":"y",
  313. "11":"y"
  314. },
  315. "and_uc":{
  316. "11.4":"y"
  317. },
  318. "samsung":{
  319. "4":"y",
  320. "5":"y"
  321. },
  322. "and_qq":{
  323. "1.2":"y"
  324. },
  325. "baidu":{
  326. "7.12":"y"
  327. }
  328. },
  329. "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.",
  330. "notes_by_num":{
  331. "1":"Partial support in Android Browser 4.4 refers to the browser lacking the ability to multiply and divide values.",
  332. "2":"Partial support in IE9 refers to the browser crashing when used as a `background-position` value."
  333. },
  334. "usage_perc_y":91.6,
  335. "usage_perc_a":1.71,
  336. "ucprefix":false,
  337. "parent":"",
  338. "keywords":"",
  339. "ie_id":"csscalc",
  340. "chrome_id":"5765241438732288",
  341. "firefox_id":"",
  342. "webkit_id":"",
  343. "shown":true
  344. }