The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

hettlage (136) [Avatar] Offline
#1
If you use the CSS from listing 2.19

:root {
  font-size: calc(0.5em + 1vw);
}


Safari (10.0.2) doesn't update the font size when you change the viewport size. Maybe it might be worth pointing this out in the discussion of calc()?
Keith J Grant (36) [Avatar] Offline
#2
Interesting. I know older versions had issues, but 10.x is surprising. Does it update if you refresh the page after resizing?
hettlage (136) [Avatar] Offline
#3
Yes, the font size is updated if you reload the page after resizing the browser.
428149 (29) [Avatar] Offline
#4
Calc() should never be used without a polyfill. Over 16% of browsers in the wild don't support it.