Problems
The line-height property in CSSCSS
PLACEHOLDER
allows different values. It can be set using px, a number, percentage or even keywords (normal, inherit…). But not all of these options are optimal for usage when using line-height.
Solution
For AccessibilityAccessibility
PLACEHOLDER
, MDN guide propose the following applications:
- Use a unitless value (like 1.5) to avoid strange behaviours when zooming the website. Using a unitless value (maybe it would apply for percentage too) allows to line-height property to scale properly.
- A minimum value of 1.5 is recommended to use in main paragraph texts. This would help people with low vision conditions or Dyslexia to follow the text.