]> Witch of Git - web/blog/commit
Avoid calc(700px + 9em) in media queries
authorCassie Jones <code@witchoflight.com>
Tue, 18 Feb 2020 23:53:32 +0000 (00:53 +0100)
committerCassie Jones <code@witchoflight.com>
Tue, 18 Feb 2020 23:53:32 +0000 (00:53 +0100)
commit596bfaaf6d9f0369fd8d31cac802198e0939efb5
treec821d4b00fcc2b2472ab79883c7d5233d7fab89b
parent64e02126d2a1c03f056e54bc6e598dc8c1f1d797
Avoid calc(700px + 9em) in media queries

I got a report that code blocks looked wrong on mobile. I was able to
reproduce in Chrome: they didn't get their margins properly updated by
the media query. Investigation revealed that apparently calc() with
mixed units is broken in media queries on Chrome.

https://bugs.chromium.org/p/chromium/issues/detail?id=843584

What I'm seeing here seems worse than the issue described there, so
there might be other factors going on, but it worked perfectly in
Firefox so I'm not sure what's going on. >_<
_includes/style.css