I'm wondering if there are APIs to know preferences users applied to browser, such as font-size, font-family, etc.
I wrote this question because I've been asked to apply browser preferences to my HTML page. For example, if user has poor sight and enlarged browser font size, I want to apply that size to my web page.
My goal is something like this:
document.getElementById("myBodyTag").style.fontSize = browser.getCurrentFont()
where 'browser' is the API I'm looking for.
EDIT:
The real reason I'm looking for this API is because the client of my project, reading the technical reference of the European Union Accessibility Law, stated that my web application must inherit the platform settings, as you can read in the pic below.
In my opinion they didn't get correctly what the document says, because there's an unclear bond between rules to be applied to web pages and rules to be applied to software.