<meta content="This test verifies different valid and invalid font shorthand declarations involving reserved keywords (caption, inherit)." name="assert" />
<style type="text/css"><![CDATA[
p
{
font-size: 1.5em;
font-family: serif;
}
div#firstTest {font: 40px \inherit foo, "CSSTest Fallback";}
/* valid: there can be a font whose name is "inherit foo" */
div#secondTest {font: 40px foo \inherit, "CSSTest Fallback";}
/* valid: there can be a font whose name is "foo inherit" */
div#thirdTest {font: caption;}
/* valid: caption is the reserved keyword for the system font */
div#fourthTest {font: medium caption, "CSSTest Fallback";}
/* valid: there can be a font whose name is "caption"; "medium" is the font-size */
div#fifthTest {font: caption foo, "CSSTest Fallback";}
/* invalid: there could be a font whose name is "caption foo"
but then the font shorthand declaration would have no font-size */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.