All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.css.checks.l10n.common.quoted-generic-font-family-names.html Maven / Gradle / Ivy

There is a newer version: 4.13
Show newest version

The font-family and font properties accept a list of generic font family names: serif, sans-serif, cursive, fantasy and monospace. If you wrap these generic family names in quotes, the browser will not interpret them as generic font family names, but will instead look for a font by that name (e.g. will look for a "sans-serif" font) -- which is almost never what you want.

Noncompliant Code Example

font-family: 'Arial', 'sans-serif';

Compliant Solution

font-family: 'Arial', sans-serif;

stylelint Related Rules





© 2015 - 2024 Weber Informatics LLC | Privacy Policy