shand-font-001.xht (769B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Shorthand Properties (font)</title> 5 <link rel="author" title="L. David Baron" href="https://dbaron.org/"/> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/about.html#shorthand"/> 7 <link rel="match" href="shand-font-000-ref.xht"/> 8 <style type="text/css"> 9 10 p.one { font-family: serif; } /* control */ 11 p.two { font-weight: bold; } 12 p.two { font: 1em/normal serif; } 13 14 </style> 15 </head> 16 <body> 17 18 <p>The following paragraphs should be identical:</p> 19 20 <p class="one">This should be in a normal weight font.</p> 21 <p class="two">This should be in a normal weight font.</p> 22 23 </body> 24 </html>