function calc() {
const width = document.getElementsByTagName('html')[0].getBoundingClientRect().width;
console.log(width);
document.getElementsByTagName('html')[0].style.fontSize = 50 / 375 * width + 'px'
console.log(document.getElementsByTagName('html')[0].style.fontSize);
}
window.addEventListener('resize',calc())