It is common practice for websites to set their base font size using pixels. And they do know what device it is shown on, for example they can adjust the font size depending on the viewport size/orientation.
User agents are free to override this, I'm sure all browsers support it.