Support parsing of font-synthesis-style property

Implement parsing of font-synthesis-style property, which controls
synthesized oblique. Added WPT tests for checking valid and invalid
property values.

Bug: 509989
Change-Id: Ib4ea928da02fead6d77c3fdd8adaa7d0c2b99785
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3114675
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Dominik Röttsches <drott@chromium.org>
Cr-Commit-Position: refs/heads/main@{#915178}
diff --git a/css/css-fonts/parsing/font-synthesis-style-invalid.html b/css/css-fonts/parsing/font-synthesis-style-invalid.html
new file mode 100644
index 0000000..e0fc0f4
--- /dev/null
+++ b/css/css-fonts/parsing/font-synthesis-style-invalid.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Fonts Module Level 4: parsing font-synthesis-style with invalid values</title>
+<link rel="help" href="https://www.w3.org/TR/css-fonts-4/#font-synthesis-style">
+<meta name="assert" content="font-synthesis-style supports only the grammar 'auto | none'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+</head>
+<body>
+<script>
+test_invalid_value('font-synthesis-style', 'normal');
+test_invalid_value('font-synthesis-style', 'auto none');
+</script>
+</body>
+</html>
diff --git a/css/css-fonts/parsing/font-synthesis-style-valid.html b/css/css-fonts/parsing/font-synthesis-style-valid.html
new file mode 100644
index 0000000..5b1c015
--- /dev/null
+++ b/css/css-fonts/parsing/font-synthesis-style-valid.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Fonts Module Level 4: parsing font-synthesis-style with valid values</title>
+<link rel="help" href="https://www.w3.org/TR/css-fonts-4/#font-synthesis-style">
+<meta name="assert" content="font-synthesis-style supports the full grammar 'auto | none'.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+</head>
+<body>
+<script>
+test_valid_value('font-synthesis-style', 'auto');
+test_valid_value('font-synthesis-style', 'none');
+</script>
+</body>
+</html>