Using calc()
in a media query in Chrome (version 68) seems to replace viewport units with px
. Eg
@media only screen and (min-height: calc(100vw + 10px))
results in
@media only screen and (min-height: 110px)
Firefox handles it correctly and IE, Edge and Safari which doesn't support calc()
in media queries (according to mozilla) seems to ignore the query which is better for my use case.
How can I apply the media query + calc() in the browsers that properly supports it? Should I expect Firefox to continue supporting calc()
this way?
Use case: In a game on a square canvas that fills the viewport, a signature should appear in the lower right corner of either the canvas (default) or the viewport depending on the available space.