From 15137476e5c5a2a4a39016928750cc0bd9af5f57 Mon Sep 17 00:00:00 2001 From: Amaury Levé Date: Mon, 25 Jun 2018 11:31:14 +0200 Subject: Rule S4649: Font declarations should contain at least one generic font family --- .../org/sonar/l10n/css/rules/css/S4649.html | 22 ++++++++++++++++++++++ .../org/sonar/l10n/css/rules/css/S4649.json | 16 ++++++++++++++++ .../l10n/css/rules/css/Sonar_way_profile.json | 1 + 3 files changed, 39 insertions(+) create mode 100644 sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4649.html create mode 100644 sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4649.json (limited to 'sonar-css-plugin/src/main/resources/org') diff --git a/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4649.html b/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4649.html new file mode 100644 index 0000000..0816eb7 --- /dev/null +++ b/sonar-css-plugin/src/main/resources/org/sonar/l10n/css/rules/css/S4649.html @@ -0,0 +1,22 @@ +
If none of the font names defined in a font or font-family declaration are available on the browser of the user, the
+browser will display the text using its default font. It's recommended to always define a generic font family for each declaration of
+font or font-family to get a less degraded situation than relying on the default browser font. All browsers should implement
+a list of generic font matching these families: Serif, Sans-serif, cursive, fantasy,
+Monospace.
+a {
+ font-family: Helvetica, Arial, Verdana, Tahoma;
+}
+
+
+a {
+ font-family: Helvetica, Arial, Verdana, Tahoma, sans-serif;
+}
+
+