using relative units of measurement

Hello all,

The conventional wisdom is that we should code in relative units of
measurement instead of pixels because the former can scale up and down in
the browser when the user zooms in and out, and the latter can't.

However, on a whim, I tested out some code that used pixels and found that
Chrome was able to scale it. I also tested this in Safari. Here is an
example in codepen <https://codepen.io/michellanneli/pen/LYPZOvW> of a
heading and text in a container that uses both pixels and ems.

Have browsers adapted to be able to scale pixels? Is coding in pixels no
longer an a11y concern? (Obviously, there are other good reasons to code in
relative units of measurement, but I'd like to focus on the a11y reasons in
this discussion.)

Thanks!

Michellanne Li
(512) 718-2207
http://www.michellanne.com

Received on Saturday, 17 August 2019 19:08:17 UTC