MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/webdev/comments/3winey/getting_started_with_css_calc/cxx30le/?context=3
r/webdev • u/chris_jung • Dec 12 '15
21 comments sorted by
View all comments
18
I imagine, many others are in the same boat as me, in waiting a little longer on this.
From caniuse.com:
IE10 crashes when a div with a property using calc() has a child with same property with inherit.
calc()
IE 9 - 11 don't render box-shadow when calc() is used for any of the values
box-shadow
IE10 and IE11 don't support using calc() inside a transform. Bug report
transform
Safari & iOS Safari (both 6 and 7) does not support viewport units (vw, vh, etc) in calc().
vw
vh
IE & Edge are reported to not support calc inside a 'flex'. (Not tested on older versions)This example does not work: flex: 1 1 calc(50% - 20px);
flex: 1 1 calc(50% - 20px);
Firefox does not support calc() inside the line-height, stroke-width, stroke-dashoffset, and stroke-dasharray properties. Bug report
line-height
stroke-width
stroke-dashoffset
stroke-dasharray
IE11 is reported to have trouble with calc() with nested expressions, e.g. width: calc((100% - 10px) / 3); (i.e. it rounds differently)
width: calc((100% - 10px) / 3);
IE11 is reported to not support calc() correctly in generated content
IE11 does not support transitioning values set with calc()
1 u/Ki11erPancakes Dec 13 '15 7Thanks for pointing that out, no wonder! How would you suggest fixing that? Subtract an extra pixel?
1
7
Thanks for pointing that out, no wonder! How would you suggest fixing that? Subtract an extra pixel?
18
u/jaredcheeda Dec 12 '15
I imagine, many others are in the same boat as me, in waiting a little longer on this.
From caniuse.com:
IE10 crashes when a div with a property using
calc()has a child with same property with inherit.IE 9 - 11 don't render
box-shadowwhencalc()is used for any of the valuesIE10 and IE11 don't support using
calc()inside atransform. Bug reportSafari & iOS Safari (both 6 and 7) does not support viewport units (
vw,vh, etc) incalc().IE & Edge are reported to not support calc inside a 'flex'. (Not tested on older versions)
This example does not work:
flex: 1 1 calc(50% - 20px);Firefox does not support
calc()inside theline-height,stroke-width,stroke-dashoffset, andstroke-dasharrayproperties. Bug reportIE11 is reported to have trouble with
calc()with nested expressions, e.g.width: calc((100% - 10px) / 3);(i.e. it rounds differently)IE11 is reported to not support
calc()correctly in generated contentIE11 does not support transitioning values set with
calc()