Re: [csswg-drafts] Browser zoom unit for accessibility [css-values-and-units] (#6869)

I'm not sure if it applies here, but in my JS-based "solution" to this where I set a CSS variable `--browser-zoom-factor` which I use when setting font-size (`font-size: calc(2.5vw * var(--browser-zoom-factor))`), will break when I connect and disconnect an external monitor with a different DPI than the monitor I was on, since the browser does not know if I zoomed in/out or if just the DPI changed. That's why it would be so helpful to just get the zoom factor somehow also.

-- 
GitHub Notification of comment by tmjoen
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6869#issuecomment-1500358540 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 7 April 2023 14:52:16 UTC