Inappropriate Font Size Check

RuleSets of AccessMonitor - the validator of web accessibility practices

Inappropriate Font Size Check

Description

The “Inappropriate Font Size Check” evaluates whether there is any CSS declaration where an absolute unit (like px, pt, cm, or in) are used to set font sizes.

Example outcome

I identified 1 instance where the font size is expressed in absolute measurement units.

Impact

Fixes

To address inappropriate font size declarations:

  1. Locate the CSS code where the font size is expressed using absolute units.
  2. Replace the absolute units by either relative units (e.g., em, rem, or %) or viewport-based units (e.g., vw, vh)

Resources