font-synthesis-invalid.html (1327B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Fonts Module: parsing font-synthesis with invalid values</title> 6 <link rel="help" href="https://drafts.csswg.org/css-fonts/#font-synthesis"> 7 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/9390#issuecomment-2625297188"> 8 <meta name="assert" content="font-synthesis supports only the grammar 'none | [ weight || [style | oblique-only] || small-caps || position ]'."> 9 <script src="/resources/testharness.js"></script> 10 <script src="/resources/testharnessreport.js"></script> 11 <script src="/css/support/parsing-testcommon.js"></script> 12 </head> 13 <body> 14 <script> 15 test_invalid_value('font-synthesis', 'auto'); 16 test_invalid_value('font-synthesis', 'none weight'); 17 test_invalid_value('font-synthesis', 'none style'); 18 test_invalid_value('font-synthesis', 'none oblique-only'); 19 test_invalid_value('font-synthesis', 'none position'); 20 test_invalid_value('font-synthesis', 'style none'); 21 test_invalid_value('font-synthesis', 'style oblique-only'); 22 test_invalid_value('font-synthesis', 'oblique-only style'); 23 test_invalid_value('font-synthesis', 'oblique-only none'); 24 test_invalid_value('font-synthesis', 'none small-caps'); 25 test_invalid_value('font-synthesis', 'small-caps none'); 26 test_invalid_value('font-synthesis', 'position none'); 27 </script> 28 </body> 29 </html>