Aucune description

calc.json 7.9KB

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